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

Adapted

Array
std::pair
mpl sequence
boost::array
boost::tuple
BOOST_FUSION_ADAPT_STRUCT
BOOST_FUSION_ADAPT_TPL_STRUCT
BOOST_FUSION_ADAPT_STRUCT_NAMED
BOOST_FUSION_ADAPT_ASSOC_STRUCT
BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT
BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED
BOOST_FUSION_ADAPT_ADT
BOOST_FUSION_ADAPT_TPL_ADT
BOOST_FUSION_ADAPT_ASSOC_ADT
BOOST_FUSION_ADAPT_ASSOC_TPL_ADT
BOOST_FUSION_DEFINE_STRUCT
BOOST_FUSION_DEFINE_TPL_STRUCT
BOOST_FUSION_DEFINE_STRUCT_INLINE
BOOST_FUSION_DEFINE_TPL_STRUCT_INLINE
BOOST_FUSION_DEFINE_ASSOC_STRUCT
BOOST_FUSION_DEFINE_ASSOC_TPL_STRUCT

Fusion provides a couple of adapters for other sequences such as arrays, std::pair, MPL sequences, and boost::array. These adapters are written using Fusion's non-intrusive Extension mechanism. If you wish to use these sequences with fusion, simply include the necessary files and they will be regarded as first-class, fully conforming fusion sequences.

Fusion also provides various schemes to make it easy for the user to adapt various data structures, non-intrusively, as full fledged Fusion sequences.

Header

#include <boost/fusion/adapted.hpp>
#include <boost/fusion/include/adapted.hpp>

Fusion sequences may also be adapted as fully conforming MPL sequences (see Intrinsics). That way, we can have 2-way adaptation to and from MPL and Fusion. To make Fusion sequences fully conforming MPL sequences, include:

#include <boost/fusion/mpl.hpp>

If you want bi-directional adaptation to and from MPL and Fusion, simply include:

#include <boost/fusion/include/mpl.hpp>

The header includes all the necessary headers.


PrevUpHomeNext