Standard C++ Library Reference ISO/IEC (VERSION3)
operator<<
template<class Elem, class Tr, class Alloc>
 basic_ostream<Elem, Tr>& operator<<(
 basic_ostream<Elem, Tr>& ostr,
 const basic_string<Elem, Tr, Alloc>& str);
The template function overloads operator<< to insert an object str of template class
basic_string into the stream ostr The function effectively returns ostr.write(
str.c_str(), str.size()).
operator<=
template<class Elem, class Tr, class Alloc>
 bool operator<=(
 const basic_string<Elem, Tr, Alloc>& left,
 const basic_string<Elem, Tr, Alloc>& right);
template<class Elem, class Tr, class Alloc>
 bool operator<=(
 const basic_string<Elem, Tr, Alloc>& left,
 const Elem *right);
template<class Elem, class Tr, class Alloc>
 bool operator<=(
 const Elem *left,
 const basic_string<Elem, Tr, Alloc>& right);
The template functions each overload operator<= to compare two objects of template class
basic_string. All effectively return basic_string<Elem, Tr,
Alloc>(left).compare(right) <= 0.
operator>
template<class Elem, class Tr, class Alloc>
 bool operator>(
 const basic_string<Elem, Tr, Alloc>& left,
 const basic_string<Elem, Tr, Alloc>& right);
template<class Elem, class Tr, class Alloc>
 bool operator>(
 const basic_string<Elem, Tr, Alloc>& left,
 const Elem *right);
template<class Elem, class Tr, class Alloc>
 bool operator>(
 const Elem *left,
 const basic_string<Elem, Tr, Alloc>& right);










