|
26 | 26 |
|
27 | 27 | namespace degate
|
28 | 28 | {
|
29 |
| - /** |
30 |
| - * @brief Common %iterator class. |
31 |
| - * |
32 |
| - * This class does nothing but define nested typedefs. %Iterator classes |
33 |
| - * can inherit from this class to save some work. The typedefs are then |
34 |
| - * used in specializations and overloading. |
35 |
| - * |
36 |
| - * In particular, there are no default implementations of requirements |
37 |
| - * such as @c operator++ and the like. (How could there be?) |
38 |
| - */ |
39 |
| - template<typename _Category, |
40 |
| - typename _Tp, |
41 |
| - typename _Distance = std::ptrdiff_t, |
42 |
| - typename _Pointer = _Tp*, |
43 |
| - typename _Reference = _Tp&> |
44 |
| - struct iterator |
| 29 | + namespace iter |
45 | 30 | {
|
46 |
| - /// One of the @link iterator_tags tag types@endlink. |
47 |
| - typedef _Category iterator_category; |
48 |
| - /// The type "pointed to" by the iterator. |
49 |
| - typedef _Tp value_type; |
50 |
| - /// Distance between iterators is represented as this type. |
51 |
| - typedef _Distance difference_type; |
52 |
| - /// This type represents a pointer-to-value_type. |
53 |
| - typedef _Pointer pointer; |
54 |
| - /// This type represents a reference-to-value_type. |
55 |
| - typedef _Reference reference; |
56 |
| - }; |
| 31 | + /** |
| 32 | + * @brief Common %iterator class. |
| 33 | + * |
| 34 | + * This class does nothing but define nested typedefs. %Iterator classes |
| 35 | + * can inherit from this class to save some work. The typedefs are then |
| 36 | + * used in specializations and overloading. |
| 37 | + * |
| 38 | + * In particular, there are no default implementations of requirements |
| 39 | + * such as @c operator++ and the like. (How could there be?) |
| 40 | + */ |
| 41 | + template<typename _Category, |
| 42 | + typename _Tp, |
| 43 | + typename _Distance = std::ptrdiff_t, |
| 44 | + typename _Pointer = _Tp*, |
| 45 | + typename _Reference = _Tp&> |
| 46 | + struct iterator |
| 47 | + { |
| 48 | + /// One of the @link iterator_tags tag types@endlink. |
| 49 | + typedef _Category iterator_category; |
| 50 | + /// The type "pointed to" by the iterator. |
| 51 | + typedef _Tp value_type; |
| 52 | + /// Distance between iterators is represented as this type. |
| 53 | + typedef _Distance difference_type; |
| 54 | + /// This type represents a pointer-to-value_type. |
| 55 | + typedef _Pointer pointer; |
| 56 | + /// This type represents a reference-to-value_type. |
| 57 | + typedef _Reference reference; |
| 58 | + }; |
| 59 | + } // namespace iter |
57 | 60 | } // namespace degate
|
58 | 61 |
|
59 | 62 | #endif
|
0 commit comments