Back to Arangodb

end

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/end.html

3.12.9.12.4 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Intrinsic Metafunctions / end |

end

Synopsis

template<
      typename X
    >
struct[end](./end.html){
    typedef_unspecified_type;
};

Description

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)>

Model of

Tag Dispatched Metafunction

Parameters

ParameterRequirementDescription
XAny typeA type whose end iterator, if any, will be returned.

Expression semantics

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. |

Complexity

Amortized constant time.

Example

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 > ));

See also

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) |