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