Skip to content

Glossary: C++ Basics

Key and value

Also written: key, key-value pair

A `std::map` stores pairs: you look up a value by its key, such as a menu code giving a price. Each key appears once.

Where the book teaches it

Related terms

std::mapStructured binding