37 #ifndef _GLIBCXX_POSTYPES_H
38 #define _GLIBCXX_POSTYPES_H 1
40 #pragma GCC system_header
47 #if (defined(_GLIBCXX_HAVE_INT64_T) && !defined(_GLIBCXX_HAVE_INT64_T_LONG) \
48 && !defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG))
50 #ifndef __STDC_LIMIT_MACROS
51 # define _UNDEF__STDC_LIMIT_MACROS
52 # define __STDC_LIMIT_MACROS
54 #ifndef __STDC_CONSTANT_MACROS
55 # define _UNDEF__STDC_CONSTANT_MACROS
56 # define __STDC_CONSTANT_MACROS
59 #ifdef _UNDEF__STDC_LIMIT_MACROS
60 # undef __STDC_LIMIT_MACROS
61 # undef _UNDEF__STDC_LIMIT_MACROS
63 #ifdef _UNDEF__STDC_CONSTANT_MACROS
64 # undef __STDC_CONSTANT_MACROS
65 # undef _UNDEF__STDC_CONSTANT_MACROS
70 namespace std _GLIBCXX_VISIBILITY(default)
72 _GLIBCXX_BEGIN_NAMESPACE_VERSION
89 #ifdef _GLIBCXX_HAVE_INT64_T_LONG
91 #elif defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG)
93 #elif defined(_GLIBCXX_HAVE_INT64_T)
113 template<
typename _StateT>
126 : _M_off(0), _M_state() { }
136 : _M_off(__off), _M_state() { }
208 {
return _M_off - __other._M_off; }
216 template<
typename _StateT>
221 template<
typename _StateT>
223 operator!=(
const fpos<_StateT>& __lhs,
const fpos<_StateT>& __rhs)
234 #ifdef __GXX_EXPERIMENTAL_CXX0X__
241 _GLIBCXX_END_NAMESPACE_VERSION
streamoff operator-(const fpos &__other) const
Subtract position to return offset.
Class representing stream positions.
fpos< mbstate_t > u32streampos
File position for char32_t streams.
void state(_StateT __st)
Remember the value of st.
fpos< mbstate_t > u16streampos
File position for char16_t streams.
fpos< mbstate_t > streampos
File position for char streams.
fpos< mbstate_t > wstreampos
File position for wchar_t streams.
fpos operator+(streamoff __off) const
Add position and offset.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
_StateT state() const
Return the last set value of st.
fpos & operator+=(streamoff __off)
Add offset to this position.
fpos(streamoff __off)
Construct position from offset.
fpos operator-(streamoff __off) const
Subtract offset from position.
long long streamoff
Type used by fpos, char_traits<char>, and char_traits<wchar_t>.
fpos & operator-=(streamoff __off)
Subtract offset from this position.