3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/back.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Intrinsic Metafunctions / back |
template<
typename Sequence
>
struct[back](./back.html){
typedef_unspecified_type;
};
Returns the last element in the sequence.
#include <[boost/mpl/back.hpp](../../../../boost/mpl/back.hpp)>
| Parameter | Requirement | Description |
|---|---|---|
| Sequence | Bidirectional Sequence | A sequence to be examined. |
For any Bidirectional Sequence s:
typedef[back](./back.html)<s>::type t;
| Return type: |
A type.
| | Precondition: |
empty<s>::value == false.
| | Semantics: |
Equivalent to
typedef[deref](./deref.html)<[prior](./prior.html)<[end](./end.html)<s>::type >::type >::type t;
|
Amortized constant time.
typedef[range\_c](./range-c.html)<int,0,1> range1;
typedef[range\_c](./range-c.html)<int,0,10> range2;
typedef[range\_c](./range-c.html)<int,-10,0> range3;[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([back](./back.html)<range1>::value, ==, 0 );[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([back](./back.html)<range2>::value, ==, 9 );[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([back](./back.html)<range3>::value, ==, -1 );
Bidirectional Sequence, front, push_back, end, deref, at
| 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) |