Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 20a7dc9240.
PrevUpHomeNext
object::find (2 of 2 overloads)

Find an element with a specific key.

Synopsis
const_iterator
find(
    string_view key) const;
Description

This function returns a constant iterator to the element matching key if it exists, otherwise returns end().

Complexity

Constant on average, worst case linear in size().

Exception Safety

No-throw guarantee.

Parameters

Name

Description

key

The key of the element to find.


PrevUpHomeNext