![]() |
Home | Libraries | People | FAQ | More |
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. |