Standard C++ Library Reference ISO/IEC (VERSION3)
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>
basic_istream<Elem, Tr>& operator>>(
basic_istream<Elem, Tr>& istr,
const basic_string<Elem, Tr, Alloc>& str);
The template function overloads operator>> to replace the sequence controlled by str with a
sequence of elements extracted from the stream istr. Extraction stops:
at end of file●
after the function extracts istr.width() elements, if that value is nonzero●
after the function extracts istr.max_size() elements●
after the function extracts an element ch for which use_facet< ctype<Elem> >(
getloc()). is( ctype<Elem>::space, ch) is true, in which case the character
is put back
●
If the function extracts no elements, it calls setstate(ios_base::failbit). In any case,
it calls istr.width(0) and returns *this.