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

basic_ostream& operator<<(short val);
basic_ostream& operator<<(unsigned short val);
basic_ostream& operator<<(int val);
basic_ostream& operator<<(unsigned int val);
basic_ostream& operator<<(long val);
basic_ostream& operator<<(unsigned long val);
basic_ostream& operator<<(const void *val);
each convert val to a numeric field and insert it by calling use_facet<num_put<Elem,
OutIt>(getloc()). put(OutIt( rdbuf()), *this, getloc(), val). Here,
OutIt is defined as ostreambuf_iterator<Elem, Tr>.
The function returns *this.
The functions:
basic_ostream& operator<<(float val);
basic_ostream& operator<<(double val);
basic_ostream& operator<<(long double val);
each convert val to a numeric field and insert it by calling use_facet<num_put<Elem,
OutIt>(getloc()). put(OutIt( rdbuf()), *this, getloc(), val). Here,
OutIt is defined as ostreambuf_iterator<Elem, Tr>. The function returns *this.
basic_ostream::put
basic_ostream& put(char_type ch);
The unformatted output function inserts the element ch. It returns *this.
basic_ostream::seekp
basic_ostream& seekp(pos_type pos);
basic_ostream& seekp(off_type off,
ios_base::seek_dir way);
If fail() is false, the first member function calls newpos = rdbuf()->
pubseekpos(pos), for some pos_type temporary object newpos. If fail() is false, the
second function calls newpos = rdbuf()-> pubseekoff(off, way). In either case, if
(off_type)newpos == (off_type)(-1) (the positioning operation fails) the function
calls istr.setstate(failbit). Both functions return *this.
basic_ostream::sentry
class sentry {
public:
explicit sentry(basic_ostream<Elem, Tr>& ostr);