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 9fc5439165.
PrevUpHomeNext
object::contains

Return true if the key is found.

Synopsis
bool
contains(
    string_view key) const;
Description

This function returns true if a key with the specified string is found.

Effects
return this->find(key) != this->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.

See Also

find


PrevUpHomeNext