The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

char_traits Class

The char_traits class describes attributes associated with a character.

template <
   class CharType
> struct char_traits;


The element data type.


The template class describes various character traits for type CharType. The template class basic_string as well as several iostream template classes, including basic_ios, use this information to manipulate elements of type CharType. Such an element type must not require explicit construction or destruction. It must supply a default constructor, a copy constructor, and an assignment operator, with the expected semantics. A bitwise copy must have the same effect as an assignment. None of the member functions of class char_traits can throw exceptions.

See Also

char_traits Members | <string> Members | Thread Safety in the Standard C++ Library

© 2014 Microsoft