35 #ifndef _GLIBCXX_POSTYPES_H
36 #define _GLIBCXX_POSTYPES_H 1
38 #pragma GCC system_header
42 namespace std _GLIBCXX_VISIBILITY(default)
44 _GLIBCXX_BEGIN_NAMESPACE_VERSION
81 template<
typename _StateT>
94 : _M_off(0), _M_state() { }
104 : _M_off(__off), _M_state() { }
106 #if __cplusplus >= 201103L
108 fpos& operator=(
const fpos&) =
default;
182 {
return _M_off - __other._M_off; }
190 template<
typename _StateT>
195 template<
typename _StateT>
197 operator!=(
const fpos<_StateT>& __lhs,
const fpos<_StateT>& __rhs)
208 #ifdef _GLIBCXX_USE_CHAR8_T
213 #if __cplusplus >= 201103L
220 _GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
fpos< mbstate_t > u32streampos
File position for char32_t streams.
long long streamoff
Type used by fpos, char_traits<char>, and char_traits<wchar_t>.
fpos< mbstate_t > wstreampos
File position for wchar_t streams.
fpos< mbstate_t > streampos
File position for char streams.
fpos< mbstate_t > u16streampos
File position for char16_t streams.
Class representing stream positions.
void state(_StateT __st)
Remember the value of st.
fpos operator+(streamoff __off) const
Add position and offset.
fpos(streamoff __off)
Construct position from offset.
fpos & operator+=(streamoff __off)
Add offset to this position.
streamoff operator-(const fpos &__other) const
Subtract position to return offset.
_StateT state() const
Return the last set value of st.
fpos operator-(streamoff __off) const
Subtract offset from position.
fpos & operator-=(streamoff __off)
Subtract offset from this position.