Skip to content

Glossary: Algorithms Beyond the Basics in C++

contains

Also written: std::map::contains

A C++20 member function asking whether a map or set has a given key.

Where the book teaches it

Related terms

std::unordered_mapstd::set