STL Containers: Tuple

code

Syntax

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

std::ignore

  • Can be used to ignore one or multiple unpacking parameters

 

Leave a comment

Your email address will not be published.