...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Count the number of elements with a specific key.
std::size_t count( string_view key) const;
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. |