Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

boost::tuple

This module provides adapters for boost::tuple. Including the module header makes boost::tuple a fully conforming Forward Sequence.

Header

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

Model of

Example

boost::tuple<int,std::string> example_tuple(101, "hello");
std::cout << *boost::fusion::begin(example_tuple) << '\n';
std::cout << *boost::fusion::next(boost::fusion::begin(example_tuple)) << '\n';

See also

Boost.Tuple Library


PrevUpHomeNext