| 1 | #ifndef _SIM_ITERATOR_BASE |
| 2 | #define _SIM_ITERATOR_BASE |
| 3 | |
| 4 | namespace std { |
| 5 | |
| 6 | struct input_iterator_tag { }; |
| 7 | struct output_iterator_tag { }; |
| 8 | struct forward_iterator_tag : public input_iterator_tag { }; |
| 9 | struct bidirectional_iterator_tag : public forward_iterator_tag { }; |
| 10 | struct random_access_iterator_tag : public bidirectional_iterator_tag { }; |
| 11 | |
| 12 | template <typename Iterator> struct iterator_traits { |
| 13 | typedef typename Iterator::difference_type difference_type; |
| 14 | typedef typename Iterator::value_type value_type; |
| 15 | typedef typename Iterator::pointer pointer; |
| 16 | typedef typename Iterator::reference reference; |
| 17 | typedef typename Iterator::iterator_category iterator_category; |
| 18 | }; |
| 19 | |
| 20 | } // namespace std |
| 21 | |
| 22 | #endif // _SIM_ITERATOR_BASE |
| 23 | |