#include
<tuple>
std::tuple<Types...> tuple_cat (Tuples&&... tuples)
Verkettet eine beliebige Anzahl von Tupeln zu einem Tupel.
tuples | Liste von Tupeln |
Rückgabewert: Tupel.
#include <iostream> #include <tuple> int main() { auto t1 = std::make_tuple(42, '*'); auto t2 = std::make_tuple(23, false); auto t3 = std::tuple_cat(t1, t2); std::cout << std::get<0>(t3) << " " << std::get<1>(t3) << ", " << std::get<2>(t3) << " " << std::get<3>(t3) << '\n'; }