我有一个元组:
std::tuple<int, std::string, bool> foo = { 10, "Hello, world!", false };
我有某种类型的单个变量:
MyClass bar;
我应该如何编写一个将单个值(或者甚至多个值,如果可能的话)附加到新元组中的通用函数?
std::tuple<int, std::string, bool, MyClass> fooBar = tuple_append(foo, bar);
^^^^^^^^^^^^
// I need this magical function!