1 .. Sequences/Intrinsic Metafunctions//end
16 typedef |unspecified| type;
24 Returns the sequence's past-the-end iterator. If the argument is not a
25 |Forward Sequence|, returns |void_|.
33 #include <boost/mpl/begin_end.hpp>
39 |Tag Dispatched Metafunction|
45 +---------------+-------------------+-----------------------------------------------+
46 | Parameter | Requirement | Description |
47 +===============+===================+===============================================+
48 | ``X`` | Any type | A type whose end iterator, if any, will be |
50 +---------------+-------------------+-----------------------------------------------+
56 For any arbitrary type ``x``:
60 typedef end<x>::type last;
63 |Forward Iterator| or |void_|.
66 If ``x`` is |Forward Sequence|, ``last`` is an iterator pointing one past the
67 last element in ``s``; otherwise ``last`` is |void_|.
70 If ``last`` is an iterator, it is past-the-end.
76 Amortized constant time.
84 typedef vector<long> v;
85 typedef begin<v>::type first;
86 typedef end<v>::type last;
88 BOOST_MPL_ASSERT(( is_same< next<first>::type, last > ));
94 |Iterators|, |Forward Sequence|, |begin|, |end|, |next|
97 .. copyright:: Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams
98 Distributed under the Boost Software License, Version 1.0. (See accompanying
99 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)