2.1 KiB
2.1 KiB
[reverse.iter.requirements]
24 Iterators library [iterators]
24.5 Iterator adaptors [predef.iterators]
24.5.1 Reverse iterators [reverse.iterators]
24.5.1.3 Requirements [reverse.iter.requirements]
The template parameterIterator shall either meet the requirements of aCpp17BidirectionalIterator ([bidirectional.iterators]) or modelbidirectional_iterator ([iterator.concept.bidir]).
Additionally,Iterator shall either meet the requirements of aCpp17RandomAccessIterator ([random.access.iterators]) or modelrandom_access_iterator ([iterator.concept.random.access]) if the definitions of any of the members
operator+,operator-,operator+=,operator-= ([reverse.iter.nav]), or
operator[] ([reverse.iter.elem]),
or the non-member operators ([reverse.iter.cmp])
operator<,operator>,operator<=,operator>=,operator-, oroperator+ ([reverse.iter.nonmember])
are instantiated ([temp.inst]).