cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : streampos
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
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

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

Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us