tuple
tuple<int, string, bool> myTuple = make_tuple(10, "John", true);tuple<int, string> getDetails() {
return make_tuple(10, "John");
}void printTuple(tuple<int, string>) {
// ...
}tuple<int, string> myTuple = make_tuple(10, "John");
get<0>(myTuple) = 20; // swaps the first elementtuple<int, string, bool> myTuple = make_tuple(10, "John", true);
int age = get<0>(myTuple);
string name = get<1>(myTuple);tuple<int, string, bool> myTuple = make_tuple(10, "John", true);
for (auto& element : myTuple) {
cout << element << " ";
}