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

Returns the result type of make_list.

Synopsis
template <typename T0, typename T1,... typename TN>
struct make_list;

For C++11 compilers, the variadic function interface has no upper bound.

For C++03 compilers, the variadic function accepts 0 to FUSION_MAX_LIST_SIZE elements, where FUSION_MAX_LIST_SIZE is a user definable predefined maximum that defaults to 10. You may define the preprocessor constant FUSION_MAX_LIST_SIZE before including any Fusion header to change the default. Example:

#define FUSION_MAX_LIST_SIZE 20
Parameters

Parameter

Requirement

Description

T0, T1,... TN

Any type

Template arguments to make_list

Expression Semantics
result_of::make_list<T0, T1,... TN>::type

Return type: A list with elements of types converted following the rules for element conversion.

Semantics: Create a list from T0, T1,... TN.

Header
#include <boost/fusion/container/generation/make_list.hpp>
#include <boost/fusion/include/make_list.hpp>
Example
result_of::make_list<int, const char(&)[7], double>::type

PrevUpHomeNext