std::fpos< _StateT >
Class representing stream positions.
- Provided by: libstdc++-15-doc (Version: 15.3.0-4ubuntu1)
- Source: gcc-15
- Report a bug
Class representing stream positions.
#include <string>
fpos (const fpos &)=default
fpos (streamoff __off)
Construct position from offset. operator streamoff () const
Convert to streamoff. fpos operator+ (streamoff __off) const
Add position and offset. fpos & operator+= (streamoff __off)
Add offset to this position. streamoff operator- (const fpos
&__other) const
Subtract position to return offset. fpos operator- (streamoff
__off) const
Subtract offset from position. fpos & operator-= (streamoff
__off)
Subtract offset from this position. fpos & operator= (const fpos
&)=default
_StateT state () const
Return the last set value of st. void state (_StateT __st)
Remember the value of st.
class std::fpos< _StateT >"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.
Parameters
Construct position from offset.
Convert to streamoff.
Add position and offset.
Add offset to this position.
Subtract position to return offset.
Subtract offset from position.
Subtract offset from this position.
Return the last set value of st.
Remember the value of st.
Generated automatically by Doxygen for libstdc++ from the source code.