Documentation Home >> Headers >> <jss/concurrent_map.hpp> Header >> jss::concurrent_map >> find member function

Return an iterator pointing to the key-value pair associated with the specified key in a given jss::concurrent_map object, if there is one.

iterator find(KeyType const& key);

Returns:

An iterator pointing to the key-value pair associated with key in *this at the point of the call, or this->end() if there is no entry for the specified key.

Throws:

Any exception thrown by the application of the Hasher or KeyEquals objects.

Synchronization:

find() may be called concurrently with any other member function of jss::concurrent_map on a given instance (except for the constructor and destructor) without external synchronization.

Header

#include <jss/concurrent_map.hpp>

See Also