.working ======= <<<<<<< .working >>>>>>> .merge-right.r57125 ======= >>>>>>> .merge-right.r58299
![]() |
Home | Libraries | People | FAQ | More |
Returns the result type of begin.
template<typename Seq> struct begin { typedef unspecified type; };
Table 1.19. Parameters
Parameter |
Requirement |
Description |
---|---|---|
Seq |
A model of Forward Sequence |
Argument sequence |
result_of::begin<Seq>::type
<<<<<<< .working Return type: An iterator modelling the same traversal concept as Seq. ======= Return type: >>>>>>> .merge-right.r57242
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 to the first element of Seq.
#include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/include/begin.hpp>
typedef vector<int> vec; typedef result_of::begin<vec>::type it; BOOST_MPL_ASSERT((boost::is_same<result_of::deref<it>::type, int&>))