ConceptC++ Concept Web

Concept BidirectionalIterator

concept BidirectionalIterator<typename X> : ForwardIterator<X> {
  typename postdecrement_result;
  requires Dereferenceable<postdecrement_result>,
           Convertible<Dereferenceable<postdecrement_result>::reference, 
                       value_type>,
           Convertible<postdecrement_result, const X&>;
 
  X& operator--(X&);
  postdecrement_result operator--(X&, int);
};

Where Defined

#include <iterator>

Description

Bidirectional iterators allow algorithms to move iterators backward as well as forward.