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

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);
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);
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.