Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
IOstream Library
manipulators
classes:
filebuf
fstream
ifstream
ios
iostream
ios_base
istream
istringstream
ofstream
ostream
ostringstream
streambuf
stringbuf
stringstream
objects:
cerr
cin
clog
cout
types:
fpos
streamoff
streampos
streamsize


streampos

type

Stream position type

Type to represent positions in a stream.

Objects of this class must support construction and conversion from int, and allow consistent conversions to/from streamoff objects, as well as the addition and subtraction of streamoff objects.

Another requirement is that two streampos objects must be able to be compared with == or != yielding a value convertible to bool, or be subtracted yielding an object of type streamoff.

It is a synonym of the instance of fpos with mbstate_t state type as template parameter.

See also