Standard C++ Library Class Reference

Interface
template <class charT> struct string_char_traits .
{
typedef charT char_type;
static void assign (char_type&, const char_type&); .
static char_type* assign (char_type*, size_t, const char_type&);
static bool eq (const char_type&, const char_type&); .
static bool ne (const char_type&, const char_type&); .
static bool lt (const char_type&, const char_type&); .
static char_type eos (); .
static int compare (const char_type*, const char_type*, size_t);
.
static size_t length (const char_type * s); .
static char_type* copy (char_type*, const char_type*, size_t);
.
static char_type* move (char_type*, const char_type*, size_t);
.
static const char_type* .
find (const char_type*, int, const char_type&);
};
Type
char_type
The basic character type. Same as the template parameter.
Operations
static
void assign (char_type& c1, const char_type& c2)
Assign one character value to another. The value of c2 is assigned to c1.
static
char_type* assign (char_type* s, size_t n, const char_type& a)
Assign one character value to n elements of a character array. The value of a is assigned
to n elements of s.
static
bool eq (const char_type& c1, const char_type& c2)
Return true if c1 equals c2.
static
bool ne (const char_type& c1, const char_type& c2)