...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 list
.
template <typename Sequence> typename result_of::as_list<Sequence>::type as_list(Sequence& seq); template <typename Sequence> typename result_of::as_list<Sequence const>::type as_list(Sequence const& seq);
Parameter |
Requirement |
Description |
---|---|---|
|
An instance of Sequence |
The sequence to convert. |
as_list(seq);
Return type: result_of::as_list
<Sequence>::type
Semantics: Convert a fusion sequence,
seq
, to a list
.
#include <boost/fusion/container/list/convert.hpp> #include <boost/fusion/include/as_list.hpp>
as_list(make_vector
('x', 123, "hello"))