.TH "std::char_traits< _CharT >" 3cxx "Tue Jul 2 2019" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::char_traits< _CharT > \- Basis for explicit traits specializations\&. .SH SYNOPSIS .br .PP .PP Inherits \fB__gnu_cxx::char_traits< _CharT >\fP\&. .PP Inherited by \fB__gnu_cxx::encoding_char_traits< _CharT >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _CharT \fBchar_type\fP" .br .ti -1c .RI "typedef _Char_types< _CharT >::int_type \fBint_type\fP" .br .ti -1c .RI "typedef _Char_types< _CharT >::off_type \fBoff_type\fP" .br .ti -1c .RI "typedef _Char_types< _CharT >::\fBpos_type\fP \fBpos_type\fP" .br .ti -1c .RI "typedef _Char_types< _CharT >::state_type \fBstate_type\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static _GLIBCXX14_CONSTEXPR 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 _GLIBCXX14_CONSTEXPR 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 _GLIBCXX14_CONSTEXPR const char_type * \fBfind\fP (const char_type *__s, std::size_t __n, const char_type &__a)" .br .ti -1c .RI "static _GLIBCXX14_CONSTEXPR 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 "template .br struct std::char_traits< _CharT >" Basis for explicit traits specializations\&. .PP \fBNote:\fP .RS 4 For any given actual character type, this definition is probably wrong\&. Since this is just a thin wrapper around __gnu_cxx::char_traits, it is possible to achieve a more appropriate definition by specializing __gnu_cxx::char_traits\&. .RE .PP See https://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html#strings.string.character_types for advice on how to make use of this class for \fIunusual\fP character types\&. Also, check out include/ext/pod_char_traits\&.h\&. .PP Definition at line 271 of file char_traits\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.