Lookup¶
All methods in this section can be executed concurrently with each other, and concurrently-safe modifiers.
find¶
bool find( const_accessor& result, const key_type& key ) const; bool find( accessor& result, const key_type& key );If the accessor
result
is not empty - releases theresult
.If an element with the key equal to
key
exists - sets theresult
to provide access to this element.Returns:
true
if an element with the key equal tokey
was found,false
otherwise.
count¶
size_type count( const key_type& key ) const;Returns:
1
if an element with the key equal tokey
exists,0
otherwise.