This commit is contained in:
Laurent Rineau 2018-02-14 21:07:56 +01:00 committed by GitHub
parent 52549b1145
commit 474a8a3658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -93,20 +93,20 @@ Iterator_range<Prevent_deref<I> > make_prevent_deref_range(const I& begin, const
return Iterator_range<Prevent_deref<I> >(make_prevent_deref(begin), make_prevent_deref(end)); return Iterator_range<Prevent_deref<I> >(make_prevent_deref(begin), make_prevent_deref(end));
} }
template<typename _Category, typename _Tp, typename _Distance = std::ptrdiff_t, template<typename Category, typename Tp, typename Distance = std::ptrdiff_t,
typename _Pointer = _Tp*, typename _Reference = _Tp&> typename Pointer = Tp*, typename Reference = Tp&>
struct iterator struct iterator
{ {
/// One of the iterator_tags tag types. /// One of the iterator_tags tag types.
typedef _Category iterator_category; typedef Category iterator_category;
/// The type "pointed to" by the iterator. /// The type "pointed to" by the iterator.
typedef _Tp value_type; typedef Tp value_type;
/// Distance between iterators is represented as this type. /// Distance between iterators is represented as this type.
typedef _Distance difference_type; typedef Distance difference_type;
/// This type represents a pointer-to-value_type. /// This type represents a pointer-to-value_type.
typedef _Pointer pointer; typedef Pointer pointer;
/// This type represents a reference-to-value_type. /// This type represents a reference-to-value_type.
typedef _Reference reference; typedef Reference reference;
}; };