Boost C++ Libraries 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.

Class template tuple



// In header: <boost/type_erasure/tuple.hpp>

template<typename Concept, class... T> 
class tuple {
  // construct/copy/destruct
  template<class... U> explicit tuple(U &&...);


tuple is a Boost.Fusion Random Access Sequence containing anys. Concept specifies the Concept for each of the elements. The remaining arguments must be (possibly const and/or reference qualified) placeholders, which are the placeholders of the elements.

tuple public construct/copy/destruct

  1. template<class... U> explicit tuple(U &&... args);

    Constructs a tuple. Each element of args will be used to initialize the corresponding any member. The binding for the tuple elements is determined by mapping the placeholders in T to the corresponding types in U.