Tuples
Tuples extend the principles of a pair to a broader perspective. Find out more in this lesson.
You can create tuples of arbitrary length and types with std::tuple. The class template needs the header <tuple>
. std::tuple
is a generalization of std::pair
. You can convert between tuples with two elements and pairs. The ...