STL Containers: Tuple


Before C++11 we had only pair as a structure, which contains two types.

C++11 added tuple, which is an extended pair.

Accessing data from a tuple

Unpacking from a tuple


  • Can be used to ignore one or multiple unpacking parameters


You may also like...

Leave a Reply