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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
as_vector
Description

Returns the result type of as_vector.

Synopsis
template <typename Sequence>
struct as_vector;
Parameters

Parameter

Requirement

Description

Sequence

A fusion Sequence

The sequence to convert.

Expression Semantics
result_of::as_vector<Sequence>::type;

Return type: A vector with same elements as the input sequence, Sequence.

Semantics: Convert a fusion sequence, Sequence, to a vector.

Header
#include <boost/fusion/container/vector/convert.hpp>
#include <boost/fusion/include/as_vector.hpp>
Example
result_of::as_vector<list<char, int> >::type

PrevUpHomeNext