.working ======= <<<<<<< .working >>>>>>> .merge-right.r57125 ======= >>>>>>> .merge-right.r58299
![]() |
Home | Libraries | People | FAQ | More |
Returns the type of the next iterator in a sequence.
<<<<<<< .workingtemplate< typename I > struct next { typedef unspecified type; };
Table 1.13. Parameters
Parameter |
Requirement |
Description |
---|---|---|
I |
Model of Forward Iterator |
Operation's argument |
result_of::next<I>::type
Return type: A model of the same iterator concept as I.
Semantics: Returns an iterator to the next element in the sequence after I.
<<<<<<< .working#include <boost/fusion/iterator/next.hpp> #include <boost/fusion/include/next.hpp><<<<<<< .working
typedef vector<int,double> vec; typedef result_of::next<result_of::begin<vec>::type>::type second; =======Example
typedefvector
<int,double> vec; typedefresult_of::next
<result_of::begin
<vec>::type>::type second; >>>>>>> .merge-right.r57125 BOOST_MPL_ASSERT((boost::is_same<result_of::value_of<second>::type, double>));