Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The template class describes an object that can store all the information needed to restore an arbitrary file-position indicator within any stream. An object of class fpos<St> effectively stores at least two member objects:
A byte offset, of type streamoff.
A conversion state, for use by an object of class basic_filebuf, of type St, typically mbstate_t.
It can also store an arbitrary file position, for use by an object of class basic_filebuf, of type fpos_t. For an environment with limited file size, however, streamoff and fpos_t may sometimes be used interchangeably. For an environment with no streams that have a state-dependent encoding, mbstate_t may actually be unused. Therefore, the number of member objects stored may vary.
template <class Statetype>
class fpos
Parameters
- Statetype
State information.
Constructors
Create an object that contains information about a position (offset) in a stream. |
Member Functions
Used internally by the Standard C++ Library only. Do not call this method from your code. |
|
Sets or returns the conversion state. |
Operators
Tests file-position indicators for inequality. |
|
Increments a file-position indicator. |
|
Increments a file-position indicator. |
|
Decrements a file-position indicator. |
|
Decrements a file-position indicator. |
|
Tests file-position indicators for equality. |
|
Casts object of type fpos to object of type streamoff. |
Requirements
Header: <ios>
Namespace: std