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
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2796 | C++98 | triviality of the destructor of pair was unspecified | specified |