| 1 |
template<bool, typename, typename> |
| 2 |
struct conditional; |
| 3 |
|
| 4 |
template<typename> struct incrementable_traits; |
| 5 |
|
| 6 |
template<typename _Iter, typename _Tp> |
| 7 |
struct __iter_traits_impl; |
| 8 |
|
| 9 |
class __max_diff_type; |
| 10 |
|
| 11 |
template<typename _Iter> |
| 12 |
concept weakly_incrementable |
| 13 |
= __is_same (__iter_traits_impl<_Iter, incrementable_traits<_Iter>>, |
| 14 |
__max_diff_type); |
| 15 |
|
| 16 |
template<typename _Iterator> |
| 17 |
class reverse_iterator |
| 18 |
{ |
| 19 |
public: |
| 20 |
using iterator_concept |
| 21 |
= typename conditional<weakly_incrementable<_Iterator>, |
| 22 |
int, int>::type; |
| 23 |
}; |