C++ Standard Template Library (STL) – [Pair and Tuple]

Pair in C++ STL is used to combine two values having different or same data types. It stores two different values as a single element. Tuple unlike pair can be used to combine two or more than two values having different or same data types.