cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : streampos
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
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

fpos Stream position class template (class template)
streamoff Stream offset type (type)
streamsize Stream size type (types)

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us