.TH "std::char_traits< _CharT >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::char_traits< _CharT > \- Basis for explicit traits specializations\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .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 "\fBtypedef\fP _CharT \fBchar_type\fP" .br .ti -1c .RI "\fBtypedef\fP _Char_types< _CharT >::int_type \fBint_type\fP" .br .ti -1c .RI "\fBtypedef\fP _Char_types< _CharT >::off_type \fBoff_type\fP" .br .ti -1c .RI "\fBtypedef\fP _Char_types< _CharT >::pos_type \fBpos_type\fP" .br .ti -1c .RI "\fBtypedef\fP _Char_types< _CharT >::state_type \fBstate_type\fP" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP \fBvoid\fP \fBassign\fP (char_type &\fB__c1\fP, \fBconst\fP char_type &__c2)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP char_type * \fBassign\fP (char_type *\fB__s\fP, std::size_t __n, char_type __a)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP int \fBcompare\fP (\fBconst\fP char_type *\fB__s1\fP, \fBconst\fP char_type *\fB__s2\fP, std::size_t __n)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP char_type * \fBcopy\fP (char_type *\fB__s1\fP, \fBconst\fP char_type *\fB__s2\fP, std::size_t __n)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP int_type \fBeof\fP ()" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP bool \fBeq\fP (\fBconst\fP char_type &\fB__c1\fP, \fBconst\fP char_type &__c2)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP bool \fBeq_int_type\fP (\fBconst\fP int_type &\fB__c1\fP, \fBconst\fP int_type &__c2)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP \fBconst\fP char_type * \fBfind\fP (\fBconst\fP char_type *\fB__s\fP, std::size_t __n, \fBconst\fP char_type &__a)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP std::size_t \fBlength\fP (\fBconst\fP char_type *\fB__s\fP)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP bool \fBlt\fP (\fBconst\fP char_type &\fB__c1\fP, \fBconst\fP char_type &__c2)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP char_type * \fBmove\fP (char_type *\fB__s1\fP, \fBconst\fP char_type *\fB__s2\fP, std::size_t __n)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP int_type \fBnot_eof\fP (\fBconst\fP int_type &__c)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP char_type \fBto_char_type\fP (\fBconst\fP int_type &__c)" .br .ti -1c .RI "\fBstatic\fP \fBconstexpr\fP int_type \fBto_int_type\fP (\fBconst\fP char_type &__c)" .br .in -1c .SH "Detailed Description" .PP .SS "template<\fBclass\fP _CharT> .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\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.