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 an older version of Boost and was released in 2024. The current version is 1.90.0.
Count the number of elements with a specific key.
std::size_tcount(string_viewkey) const noexcept;
This function returns the count of the number of elements match key. The only possible return values
are 0 and 1.
Constant on average, worst case linear in size().
No-throw guarantee.
|
Name |
Description |
|---|---|
|
|
The key of the element to find. |