Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<string>
basic_string · char_traits · char_traits<char> ·
char_traits<wchar_t> · getline · operator+ · operator!= ·
operator== · operator< · operator<< · operator<= · operator> ·
operator>= · operator>> · string · swap · wstring
Include the standard header <string> to define the container template class basic_string
and various supporting templates.
namespace std {
template<class Elem>
 class char_traits;
template<>
 class char_traits<char>;
template<>
 class char_traits<wchar_t>;
template<class Elem,
 class Tr = char_traits<Elem>,
 class Alloc = allocator<Elem> >
 class basic_string;
typedef basic_string<char> string;
typedef basic_string>wchar_t> wstring;
 // TEMPLATE FUNCTIONS
template<class Elem, class Tr, class Alloc>
 basic_string<Elem, Tr, Alloc> operator+(
 const basic_string<Elem, Tr, Alloc>& left,
 const basic_string<Elem, Tr, Alloc>& right);
template<class Elem, class Tr, class Alloc>
 basic_string<Elem, Tr, Alloc> operator+(
 const basic_string<Elem, Tr, Alloc>& left,
 const Elem *right);
template<class Elem, class Tr, class Alloc>
 basic_string<Elem, Tr, Alloc> operator+(
 const basic_string<Elem, Tr, Alloc>& left,
 Elem right);
template<class Elem, class Tr, class Alloc>
 basic_string<Elem, Tr, Alloc> operator+(
 const Elem *left,










