A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/ostream.seeks below:

[ostream.seeks]

30 Input/output library [input.output] 30.7 Formatting and manipulators [iostream.format] 30.7.5 Output streams [output.streams] 30.7.5.1 Class template basic_­ostream [ostream] 30.7.5.1.4 basic_­ostream seek members [ostream.seeks]

Each seek member function begins execution by constructing an object of class sentry. It returns by destroying the sentry object.

pos_type tellp();

Returns: If fail() != false, returns pos_­type(-1) to indicate failure. Otherwise, returns rdbuf()->​pubseekoff(​0, cur, out).

basic_ostream<charT, traits>& seekp(pos_type pos);

Effects: If fail() != true, executes rdbuf()->pubseekpos(pos, ios_­base​::​out). In case of failure, the function calls setstate(failbit) (which may throw ios_­base​::​failure).

basic_ostream<charT, traits>& seekp(off_type off, ios_base::seekdir dir);

Effects: If fail() != true, executes rdbuf()->pubseekoff(off, dir, ios_­base​::​out). In case of failure, the function calls setstate(failbit) (which may throw ios_­base​::​failure).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4