Section

std::pair

std::pair is a class template that provides a way to store two heterogeneous objects as a single unit. A pair is a specific case of a std::tuple with two elements.

# Declarations

template<
class T1,
class T2
> struct pair;

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2796C++98triviality of the destructor of pair was unspecifiedspecified

# See also