.TH "__gnu_cxx::char_traits< _CharT >" 3cxx "Sun Jan 6 2013" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_cxx::char_traits< _CharT > \- .SH SYNOPSIS .br .PP .PP Inherited by \fBstd::char_traits< _CharT >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _CharT \fBchar_type\fP" .br .ti -1c .RI "typedef \fB_Char_types\fP< _CharT > .br ::int_type \fBint_type\fP" .br .ti -1c .RI "typedef \fB_Char_types\fP< _CharT > .br ::off_type \fBoff_type\fP" .br .ti -1c .RI "typedef \fB_Char_types\fP< _CharT > .br ::\fBpos_type\fP \fBpos_type\fP" .br .ti -1c .RI "typedef \fB_Char_types\fP< _CharT > .br ::state_type \fBstate_type\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static void \fBassign\fP (char_type &__c1, const char_type &__c2)" .br .ti -1c .RI "static char_type * \fBassign\fP (char_type *__s, std::size_t __n, char_type __a)" .br .ti -1c .RI "static int \fBcompare\fP (const char_type *__s1, const char_type *__s2, std::size_t __n)" .br .ti -1c .RI "static char_type * \fBcopy\fP (char_type *__s1, const char_type *__s2, std::size_t __n)" .br .ti -1c .RI "static constexpr int_type \fBeof\fP ()" .br .ti -1c .RI "static constexpr bool \fBeq\fP (const char_type &__c1, const char_type &__c2)" .br .ti -1c .RI "static constexpr bool \fBeq_int_type\fP (const int_type &__c1, const int_type &__c2)" .br .ti -1c .RI "static const char_type * \fBfind\fP (const char_type *__s, std::size_t __n, const char_type &__a)" .br .ti -1c .RI "static std::size_t \fBlength\fP (const char_type *__s)" .br .ti -1c .RI "static constexpr bool \fBlt\fP (const char_type &__c1, const char_type &__c2)" .br .ti -1c .RI "static char_type * \fBmove\fP (char_type *__s1, const char_type *__s2, std::size_t __n)" .br .ti -1c .RI "static constexpr int_type \fBnot_eof\fP (const int_type &__c)" .br .ti -1c .RI "static constexpr char_type \fBto_char_type\fP (const int_type &__c)" .br .ti -1c .RI "static constexpr int_type \fBto_int_type\fP (const char_type &__c)" .br .in -1c .SH "Detailed Description" .PP .SS "templatestruct __gnu_cxx::char_traits< _CharT >" Base class used to implement \fBstd::char_traits\fP\&. \fBNote:\fP .RS 4 For any given actual character type, this definition is probably wrong\&. (Most of the member functions are likely to be right, but the int_type and state_type typedefs, and the eof() member function, are likely to be wrong\&.) The reason this class exists is so users can specialize it\&. Classes in namespace std may not be specialized for fundamental types, but classes in namespace \fB__gnu_cxx\fP may be\&. .RE .PP See http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt05ch13s03.html for advice on how to make use of this class for \fIunusual\fP character types\&. Also, check out \fBinclude/ext/pod_char_traits\&.h\fP\&. .PP Definition at line 85 of file char_traits\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.