object::contains
Return true
if the key is found.
Synopsis
bool
contains(
string_view key) const noexcept;
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 |
---|---|
|
The key of the element to find. |