...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the result type of end
.
template<typename Seq> struct end { typedef unspecified type; };
Table 1.23. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
A model of Forward Sequence |
Argument sequence |
result_of::end<Seq>::type
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 the type of an iterator
one past the end of Seq
.
#include <boost/fusion/sequence/intrinsic/end.hpp> #include <boost/fusion/include/end.hpp>
typedefvector
<int> vec; typedefresult_of::prior
<result_of::end
<vec>::type>::type first; BOOST_MPL_ASSERT((result_of::equal_to
<first,result_of::begin
<vec>::type>))