...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This module provides adapters for std::tuple
.
Including the module header makes std::tuple
a fully conforming Random
Access Sequence.
Important | |
---|---|
To be fully conforming, compiler should support C++11 Variadic Templates. |
#include <boost/fusion/adapted/std_tuple.hpp> #include <boost/fusion/include/std_tuple.hpp>
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;