Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2013. The current version is 1.90.0.
Returns the result type of begin.
template<typename Seq> struct begin { typedef unspecified type; };
Table 1.19. Parameters
|
Parameter |
Requirement |
Description |
|---|---|---|
|
|
A model of Forward Sequence |
Argument sequence |
result_of::begin<Seq>::type
Return type: An iterator modelling the
same traversal concept as Seq.
Semantics: Returns the type of an iterator
to the first element of Seq.
/sequence/intrinsic/begin.hpp>
typedefvector<int> vec; typedefresult_of::begin<vec>::type it; BOOST_MPL_ASSERT((boost::is_same<result_of::deref<it>::type, int&>))