std::fpos< _StateT > - Class representing stream positions.
Contents
Constructor & Destructor Documentation
template<typename_StateT>std::fpos<_StateT>::fpos(streamoff__off)[inline]
Construct position from offset.
Detailed Description
template<typename_StateT>
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.
ParametersStateT Type passed to and returned from state().
Member Function Documentation
template<typename_StateT>std::fpos<_StateT>::operatorstreamoff()const[inline]
Convert to streamoff.
template<typename_StateT>fposstd::fpos<_StateT>::operator+(streamoff__off)const[inline]
Add position and offset.
template<typename_StateT>fpos&std::fpos<_StateT>::operator+=(streamoff__off)[inline]
Add offset to this position.
template<typename_StateT>streamoffstd::fpos<_StateT>::operator-(constfpos<_StateT>&__other)const[inline]
Subtract position to return offset.
template<typename_StateT>fposstd::fpos<_StateT>::operator-(streamoff__off)const[inline]
Subtract offset from position.
template<typename_StateT>fpos&std::fpos<_StateT>::operator-=(streamoff__off)[inline]
Subtract offset from this position.
template<typename_StateT>_StateTstd::fpos<_StateT>::state()const[inline]
Return the last set value of st.
template<typename_StateT>voidstd::fpos<_StateT>::state(_StateT__st)[inline]
Remember the value of st.
Name
std::fpos< _StateT > - Class representing stream positions.
Synopsis
#include <string>
PublicMemberFunctionsfpos (const fpos &)=defaultfpos (streamoff__off)
Construct position from offset.
operatorstreamoff () const
Convert to streamoff.
fposoperator+ (streamoff__off) const
Add position and offset.
fpos & operator+= (streamoff__off)
Add offset to this position.
streamoffoperator- (const fpos &__other) const
Subtract position to return offset.
fposoperator- (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.
voidstate (_StateT __st)
Remember the value of st.
