cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : fpos
- -
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

-

fpos class template
template <class stateT> class fpos;

Stream position class template

Class template used as a template for types to indicate positions in streams. The template depends on the state type stateT.

The class is implementation-defined, but has at least two members:

stateT state() const;
void state(stateT);

Which either take or return a value of the state type stateT.

Objects of any fpos instance 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 objects of the same fpos instance can be compared with == or != yielding a value convertible to bool, or be subtracted yielding an object of type streamoff.

The streampos class is the instance of fpos with the default state type for the char traits (mbstate_t).

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