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 a snapshot of the develop branch, built from commit 2f6427cde6.
PrevUpHomeNext

std::tuple

This module provides adapters for std::tuple. Including the module header makes std::tuple a fully conforming Random Access Sequence.

[Important] Important

To be fully conforming, compiler should support C++11 Variadic Templates.

Header
#include <boost/fusion/adapted/std_tuple.hpp>
#include <boost/fusion/include/std_tuple.hpp>
Model of
Example
std::tuple<int, std::string, float> p(123, "Hola!!!", 456.f);
std::cout << at_c<0>(p) << std::endl;
std::cout << at_c<1>(p) << std::endl;
std::cout << p << std::endl;
See also

std::tuple


PrevUpHomeNext