3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/end.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Intrinsic Metafunctions / end |
template<
typename X
>
struct[end](./end.html){
typedef_unspecified_type;
};
Returns the sequence's past-the-end iterator. If the argument is not a Forward Sequence, returns void_.
#include <[boost/mpl/begin\_end.hpp](../../../../boost/mpl/begin_end.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| X | Any type | A type whose end iterator, if any, will be returned. |
For any arbitrary type x:
typedef[end](./end.html)<x>::type last;
| Return type: | Forward Iterator or void_. | | Semantics: | If x is Forward Sequence, last is an iterator pointing one past the last element in s; otherwise last is void_. | | Postcondition: | If last is an iterator, it is past-the-end. |
Amortized constant time.
typedef[vector](./vector.html)<long> v;
typedef[begin](./begin.html)<v>::type first;
typedef[end](./end.html)<v>::type last;[BOOST\_MPL\_ASSERT](./assert.html)(( is_same<[next](./next.html)<first>::type, last > ));
Iterators, Forward Sequence, begin, end, next
| Prev Next | Back Along | Up Home | Full TOC |
Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |