35 #ifndef _GLIBCXX_POSTYPES_H
36 #define _GLIBCXX_POSTYPES_H 1
38 #pragma GCC system_header
45 #if (defined(_GLIBCXX_HAVE_INT64_T) && !defined(_GLIBCXX_HAVE_INT64_T_LONG) \
46 && !defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG))
48 #ifndef __STDC_LIMIT_MACROS
49 # define _UNDEF__STDC_LIMIT_MACROS
50 # define __STDC_LIMIT_MACROS
52 #ifndef __STDC_CONSTANT_MACROS
53 # define _UNDEF__STDC_CONSTANT_MACROS
54 # define __STDC_CONSTANT_MACROS
57 #ifdef _UNDEF__STDC_LIMIT_MACROS
58 # undef __STDC_LIMIT_MACROS
59 # undef _UNDEF__STDC_LIMIT_MACROS
61 #ifdef _UNDEF__STDC_CONSTANT_MACROS
62 # undef __STDC_CONSTANT_MACROS
63 # undef _UNDEF__STDC_CONSTANT_MACROS
68 namespace std _GLIBCXX_VISIBILITY(default)
70 _GLIBCXX_BEGIN_NAMESPACE_VERSION
87 #ifdef _GLIBCXX_HAVE_INT64_T_LONG
89 #elif defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG)
91 #elif defined(_GLIBCXX_HAVE_INT64_T)
111 template<
typename _StateT>
124 : _M_off(0), _M_state() { }
134 : _M_off(__off), _M_state() { }
206 {
return _M_off - __other._M_off; }
214 template<
typename _StateT>
219 template<
typename _StateT>
221 operator!=(
const fpos<_StateT>& __lhs,
const fpos<_StateT>& __rhs)
232 #if __cplusplus >= 201103L
239 _GLIBCXX_END_NAMESPACE_VERSION
long long streamoff
Type used by fpos, char_traits, and char_traits.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
ISO C++ entities toplevel namespace is std.
fpos< mbstate_t > streampos
File position for char streams.
fpos(streamoff __off)
Construct position from offset.
fpos< mbstate_t > wstreampos
File position for wchar_t streams.
Class representing stream positions.
fpos< mbstate_t > u16streampos
File position for char16_t streams.
fpos< mbstate_t > u32streampos
File position for char32_t streams.
fpos operator-(streamoff __off) const
Subtract offset from position.
void state(_StateT __st)
Remember the value of st.
_StateT state() const
Return the last set value of st.
fpos & operator+=(streamoff __off)
Add offset to this position.
fpos & operator-=(streamoff __off)
Subtract offset from this position.
fpos operator+(streamoff __off) const
Add position and offset.
streamoff operator-(const fpos &__other) const
Subtract position to return offset.