std::tuple
This lesson talks about std::tuple in detail.
We'll cover the following...
Tuples extend the principles of a pair to a broader range of functions. We can create tuples of arbitrary lengths and types with std::tuple. The class template needs the header <tuple>
. std::tuple
is a generalization of std::pair
. We can convert between tuples with two elements and pairs. The tuple has, like his younger brother std::pair
, a default, a copy, and a move constructor. We can ...