![]() |
Home | Libraries | People | FAQ | More |
Returns an iterator pointing to the first element in the sequence.
template <typename Sequence> typenameresult_of::begin
<Sequence>::type begin(Sequence& seq); template <typename Sequence> typenameresult_of::begin
<Sequence const>::type begin(Sequence const& seq);
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Forward Sequence |
The sequence we wish to get an iterator from. |
begin(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 the first element in the sequence.
#include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/include/begin.hpp>
vector
<int, int, int> v(1, 2, 3); assert(deref
(begin(v)) == 1);