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
70 _GLIBCXX_BEGIN_NAMESPACE_VERSION
87 #ifdef _GLIBCXX_HAVE_INT64_T_LONG
88 typedef long streamoff;
89 #elif defined(_GLIBCXX_HAVE_INT64_T_LONG_LONG)
90 typedef long long streamoff;
91 #elif defined(_GLIBCXX_HAVE_INT64_T)
92 typedef int64_t streamoff;
94 typedef long long streamoff;
111 template<
typename _StateT>
124 : _M_off(0), _M_state() { }
133 fpos(streamoff __off)
134 : _M_off(__off), _M_state() { }
137 operator streamoff()
const {
return _M_off; }
154 operator+=(streamoff __off)
165 operator-=(streamoff __off)
206 {
return _M_off - __other._M_off; }
214 template<
typename _StateT>
216 operator==(
const fpos<_StateT>& __lhs,
const fpos<_StateT>& __rhs)
217 {
return streamoff(__lhs) == streamoff(__rhs); }
219 template<
typename _StateT>
221 operator!=(
const fpos<_StateT>& __lhs,
const fpos<_StateT>& __rhs)
222 {
return streamoff(__lhs) != streamoff(__rhs); }
228 typedef fpos<mbstate_t> streampos;
230 typedef fpos<mbstate_t> wstreampos;
232 #if __cplusplus >= 201103L
233 typedef fpos<mbstate_t> u16streampos;
236 typedef fpos<mbstate_t> u32streampos;
239 _GLIBCXX_END_NAMESPACE_VERSION
namespace std _GLIBCXX_VISIBILITY(default)
Definition: postypes.h:68
bool operator==(const exception_ptr &, const exception_ptr &) _GLIBCXX_USE_NOEXCEPT __attribute__((__pure__))
_Safe_iterator< _Iterator, _Sequence > operator+(typename _Safe_iterator< _Iterator, _Sequence >::difference_type __n, const _Safe_iterator< _Iterator, _Sequence > &__i)
Definition: safe_iterator.h:712
_Safe_iterator< _IteratorL, _Sequence >::difference_type operator-(const _Safe_iterator< _IteratorL, _Sequence > &__lhs, const _Safe_iterator< _IteratorR, _Sequence > &__rhs)
Definition: safe_iterator.h:680
bool operator!=(const exception_ptr &, const exception_ptr &) _GLIBCXX_USE_NOEXCEPT __attribute__((__pure__))
__PTRDIFF_TYPE__ ptrdiff_t
Definition: stddef.h:147