...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Iterators / Iterator Metafunctions / prior |
Returns the previous iterator in the sequence. [Note: prior has a number of
overloaded meanings, depending on the type of its argument. For instance,
if X is an Integral Constant, prior
#include <boost/mpl/next_prior.hpp>
Parameter | Requirement | Description |
---|---|---|
Iterator | Bidirectional Iterator. | An iterator to decrement. |
For any Bidirectional Iterators iter:
typedef prior::type j;
Return type: | |
---|---|
Precondition: | iter is decrementable. |
Semantics: | j is an iterator pointing to the previous element in the sequence. If iter is a user-defined iterator, the library-provided default implementation is equivalent to typedef iter::prior j; |
Amortized constant time.