Skip to content

Glossary: Data Structures and Algorithms in C++

std::pair

Also written: pair

Two items kept together, compared first then second. It has no std::hash, so it can be a key of a std::map but not of an unordered_map.

Where the book teaches it

Related terms

Hashablestd::map