Skip to content

Glossary: Coding Interviews in C++

std::pair

Also written: pair, std::make_pair

A bundle of two values with `.first` and `.second`. Pairs compare by the first member, then the second.

Where the book teaches it

Related terms

std::tupleStructured binding