1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <string>
11 
12 // template<> struct char_traits<char>
13 
14 // typedef char      char_type;
15 // typedef int       int_type;
16 // typedef streamoff off_type;
17 // typedef streampos pos_type;
18 // typedef mbstate_t state_type;
19 
20 #include <string>
21 #include <type_traits>
22 
23 int main()
24 {
25     static_assert((std::is_same<std::char_traits<char>::char_type, char>::value), "");
26     static_assert((std::is_same<std::char_traits<char>::int_type, int>::value), "");
27     static_assert((std::is_same<std::char_traits<char>::off_type, std::streamoff>::value), "");
28     static_assert((std::is_same<std::char_traits<char>::pos_type, std::streampos>::value), "");
29     static_assert((std::is_same<std::char_traits<char>::state_type, std::mbstate_t>::value), "");
30 }
31