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

operator bool() const;
~sentry();
private:
sentry(const sentry&); // not defined
sentry& operator=(const sentry&); // not defined
bool status;
};
The nested class describes an object whose declaration structures the formatted output functions
and the unformatted output functions. If ostr.good() is true, and ostr.tie() is not a null
pointer, the constructor calls ostr.tie->flush(). The constructor then stores the value
returned by ostr.good() in status. A later call to operator bool() delivers this stored
value.
If
uncaught_exception() returns false and flags() & unitbuf is nonzero, the
destructor calls flush().
basic_ostream::tellp
pos_type tellp();
If fail() is false, the member function returns rdbuf()-> pubseekoff(0, cur, in).
Otherwise, it returns pos_type(-1).
basic_ostream::write
basic_ostream& write(const char_type *str, streamsize count);
The unformatted output function inserts the sequence of count elements beginning at str.
endl
template class<Elem, Tr>
basic_ostream<Elem, Tr>& endl(basic_ostream<Elem, Tr>& ostr);
The manipulator calls ostr.put(ostr. widen('\n')), then calls ostr.flush(). It
returns ostr.
ends
template class<Elem, Tr>
basic_ostream<Elem, Tr>& ends(basic_ostream<Elem, Tr>& ostr);
The manipulator calls ostr.put(Elem('\0')). It returns ostr.