...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns an iterator pointing to one element past the end of the sequence.
template <typename Sequence> typenameresult_of::end
<Sequence>::type end(Sequence& seq); template <typename Sequence> typenameresult_of::end
<Sequence const>::type end(Sequence const& seq);
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Forward Sequence |
The sequence we wish to get an iterator from. |
end(seq);
Return type:
seq
is a Forward
Sequence else, Bidirectional
Iterator if seq
is a Bidirectional
Sequence else, Random
Access Iterator if seq
is a Random
Access Sequence.
seq
is an Associative
Sequence.
Semantics: Returns an iterator pointing to one element past the end of the sequence.
#include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/include/end.hpp>
vector
<int, int, int> v(1, 2, 3); assert(deref
(prior
(end(v))) == 3);