Standard C++ Library Reference ISO/IEC (VERSION3)

formatted output functions make use of the following additional operations, also with the expected
semantics:
operator==(Elem) and operator!=(Elem) to compare elements
(char)ch to convert an element ch to its corresponding single-byte character code, or
'\0' if no such code exists
(Elem)ch to convert a char value ch to its correponding character code of type Elem
None of the member functions of class char_traits may throw exceptions.
char_traits::assign
static void assign(char_type& left, const char_type& right);
static char_type *assign(char_type *first, size_t count,
char_type ch);
The first static member function assigns right to left. The second static member function
assigns ch to each element X[N] for N in the range [0, count).
char_traits::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
char_traits::compare
static int compare(const char_type *first1,
const char_type *first2, size_t count);
The static member function compares the sequence of length count beginning at first1to the
sequence of the same length beginning at first2. The function returns:
a negative value if the first differing element in first1 (as determined by eq) compares
less than the corresponding element in first2 (as determined by lt)
zero if the two compare equal element by element
a positive value otherwise
char_traits::copy
static char_type *copy(char_type *first1, const char_type *first2,
size_t count);
The static member function copies the sequence of count elements beginning at first2 to the
array beginning at first1, then returns first1. The source and destination must not overlap.