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 2022. The current version is 1.89.0.
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 |
|---|---|---|
|
|
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"))