1 .. Iterators/Iterator Metafunctions//next |30
16 typedef |unspecified| type;
24 Returns the next iterator in the sequence. |Note:| ``next`` has a number of
25 overloaded meanings, depending on the type of its argument. For instance,
26 if ``X`` is an |Integral Constant|, ``next<X>`` returns an incremented
27 |Integral Constant| of the same type. The following specification is
28 iterator-specific. Please refer to the corresponding concept's
29 documentation for the details of the alternative semantics |-- end note|.
37 #include <boost/mpl/next_prior.hpp>
43 +---------------+---------------------------+-----------------------------------+
44 | Parameter | Requirement | Description |
45 +===============+===========================+===================================+
46 | ``Iterator`` | |Forward Iterator|. | An iterator to increment. |
47 +---------------+---------------------------+-----------------------------------+
53 For any |Forward Iterator|\ s ``iter``:
58 typedef next<iter>::type j;
64 ``iter`` is incrementable.
67 ``j`` is an iterator pointing to the next element in the sequence, or
68 is past-the-end. If ``iter`` is a user-defined iterator, the
69 library-provided default implementation is equivalent to
79 Amortized constant time.
87 typedef vector_c<int,1> v;
88 typedef begin<v>::type first;
89 typedef end<v>::type last;
91 BOOST_MPL_ASSERT(( is_same< next<first>::type, last > ));
97 |Iterators|, |begin| / |end|, |prior|, |deref|
100 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
101 Distributed under the Boost Software License, Version 1.0. (See accompanying
102 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)