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_deque
Description

Convert a fusion sequence to a deque.

Synopsis
template <typename Sequence>
typename result_of::as_deque<Sequence>::type
as_deque(Sequence& seq);

template <typename Sequence>
typename result_of::as_deque<Sequence const>::type
as_deque(Sequence const& seq);
Parameters

Parameter

Requirement

Description

seq

An instance of Sequence

The sequence to convert.

Expression Semantics
as_deque(seq);

Return type: __result_of_as_deque__<Sequence>::type

Semantics: Convert a fusion sequence, seq, to a deque.

Header
#include <boost/fusion/container/deque/convert.hpp>
#include <boost/fusion/include/as_deque.hpp>
Example
as_deque(make_vector('x', 123, "hello"))

PrevUpHomeNext