Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
string_char_traits
Summary
A traits class providing types and operations to the basic_string container.
Contents
Summary●
Synopsis●
Description●
Interface●
Type●
Operations●
See Also●
Synopsis
#include <string>
template <class charT> struct string_char_traits
struct string_char_traits<char>; .
struct string_char_traits<wchar_t>;
Description
The string_char_traits struct provides elementary operations to instantiations of basic_string.
As with all traits classes, string_char_traits is used to specialize the behavior of a template. In
this case, the traits class provides functions based on character type to the basic_string
template.
Specializations of string_char_traits are provided for char and wchar_t. These are used to
define, respectively, string and wstring.