| 1 |
template<bool __v> |
| 2 |
struct integral_constant {}; |
| 3 |
|
| 4 |
typedef integral_constant<true> true_type; |
| 5 |
typedef integral_constant<false> false_type; |
| 6 |
|
| 7 |
template<typename> |
| 8 |
struct __is_not_void_helper |
| 9 |
: public true_type { }; |
| 10 |
|
| 11 |
template<> struct __is_not_void_helper<void> |
| 12 |
: public false_type { }; |
| 13 |
|
| 14 |
template<typename _Tp, typename _Up> |
| 15 |
struct is_same |
| 16 |
: public integral_constant<__is_same_as(_Tp, _Up)> {}; |
| 17 |
|
| 18 |
template<typename _Iterator> |
| 19 |
struct iterator_traits; |
| 20 |
|
| 21 |
template<typename _Tp> requires __is_not_void_helper<_Tp>::value |
| 22 |
struct iterator_traits<_Tp*>; |
| 23 |
|
| 24 |
template<typename _Tp> |
| 25 |
struct iterator {}; |
| 26 |
|
| 27 |
template<typename _Iterator> |
| 28 |
class reverse_iterator |
| 29 |
: public iterator<typename iterator_traits<_Iterator>::value_type> |
| 30 |
{ |
| 31 |
}; |
| 32 |
|
| 33 |
template<typename _Tp> struct _Deque_iterator; |
| 34 |
|
| 35 |
template<typename _Tp> void __copy_move_a1(_Deque_iterator<_Tp>); |
| 36 |
|
| 37 |
template<typename _Iterator> |
| 38 |
decltype (NOPE (_Iterator{})) __niter_base (reverse_iterator<_Iterator> __it); |
| 39 |
|
| 40 |
|
| 41 |
template<typename _II> |
| 42 |
inline void __copy_move_a (_II __first) |
| 43 |
{ |
| 44 |
__copy_move_a1 (__niter_base (__first)); |
| 45 |
} |
| 46 |
|
| 47 |
template<typename _CharT> |
| 48 |
struct __gnu_char_traits |
| 49 |
{ |
| 50 |
static void move (const char* __s2) |
| 51 |
{ |
| 52 |
__copy_move_a (__s2); |
| 53 |
} |
| 54 |
}; |
| 55 |
|
| 56 |
class string_view |
| 57 |
{ |
| 58 |
using t = __gnu_char_traits<char>; |
| 59 |
|
| 60 |
public: |
| 61 |
string_view (const char* __str) noexcept; |
| 62 |
}; |
| 63 |
|
| 64 |
template<typename _Ret> |
| 65 |
void __stoa () |
| 66 |
{ |
| 67 |
struct _Range_chk { |
| 68 |
static bool _S_chk (false_type) { return false; } |
| 69 |
static bool _S_chk (true_type) { return true; } |
| 70 |
}; |
| 71 |
|
| 72 |
_Range_chk::_S_chk (is_same<_Ret, long>{}); |
| 73 |
} |
| 74 |
|
| 75 |
inline void stoi () { __stoa<long> (); } |