libstdc++
|
Public Member Functions | |
fpos (const fpos &)=default | |
fpos (streamoff __off) | |
operator streamoff () const | |
fpos | operator+ (streamoff __off) const |
fpos & | operator+= (streamoff __off) |
streamoff | operator- (const fpos &__other) const |
fpos | operator- (streamoff __off) const |
fpos & | operator-= (streamoff __off) |
fpos & | operator= (const fpos &)=default |
_StateT | state () const |
void | state (_StateT __st) |
Class representing stream positions.
The standard places no requirements upon the template parameter StateT. In this implementation StateT must be DefaultConstructible, CopyConstructible and Assignable. The standard only requires that fpos should contain a member of type StateT. In this implementation it also contains an offset stored as a signed integer.
StateT | Type passed to and returned from state(). |
Definition at line 82 of file postypes.h.
Construct position from offset.
Definition at line 103 of file postypes.h.
Convert to streamoff.
Definition at line 113 of file postypes.h.
Add position and offset.
Definition at line 154 of file postypes.h.
Add offset to this position.
Definition at line 130 of file postypes.h.
|
inline |
Subtract position to return offset.
Definition at line 181 of file postypes.h.
Subtract offset from position.
Definition at line 168 of file postypes.h.
Subtract offset from this position.
Definition at line 141 of file postypes.h.
|
inline |
Return the last set value of st.
Definition at line 122 of file postypes.h.
|
inline |
Remember the value of st.
Definition at line 117 of file postypes.h.