end
template<
typename Sequence
>
struct end
{
typedef unspecified type;
};
Returns the past-the-end iterator to the sequence.
#include "boost/mpl/begin_end.hpp"
| Parameter | Requirement | Description |
|---|---|---|
Sequence | A model of Sequence |
| Expression | Expression type | Precondition | Semantics | Postcondition |
|---|---|---|---|---|
typedef end<Sequence>::type last; | A model of Input Iterator | last is an iterator pointing one past the last element in the Sequence; equivalent to Sequence::end unless the algorithm has been specialized for the particular type of sequence. | last is past-the-end. |
Amortized constant time.
typedef list<long> short_list; typedef begin<short_list>::type first; typedef end<short_list>::type last; BOOST_STATIC_ASSERT((boost::is_same<first::next,last>::value));
Iterators, Sequence, begin, size, empty