...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Convert a fusion sequence to a vector.
template <typename Sequence> typename result_of::as_vector<Sequence>::type as_vector(Sequence& seq); template <typename Sequence> typename result_of::as_vector<Sequence const>::type as_vector(Sequence const& seq);
Parameter |
Requirement |
Description |
---|---|---|
seq |
An instance of Sequence |
The sequence to convert. |
as_vector(seq);
Return type: result_of::as_vector<Sequence>::type
Semantics: Convert a fusion sequence, seq, to a vector.
#include <boost/fusion/container/vector/convert.hpp> #include <boost/fusion/include/as_vector.hpp>
as_vector(make_list('x', 123, "hello"))