Lookup
Contents
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
result
accessor is not empty, releases theresult
.If an element with the key that is equivalent to
key
exists, sets theresult
to provide access to this element.Returns:
true
if an element with the key equivalent tokey
is found;false
otherwise.
template <typename K> bool find( const_accessor& result, const K& key ) const; template <typename K> bool find( accessor& result, const K& key );If the
result
accessor is not empty, releases theresult
.If an element with the key that compares equivalent to the value
key
exists, sets theresult
to provide access to this element.Returns:
true
if an element with the key that compares equivalent to the valuekey
is found;false
otherwise.This overload only participates in the overload resolution if qualified-id
hash_compare_type::is_transparent
is valid and denotes a type.
count#
size_type count( const key_type& key ) const;Returns:
1
if an element with the key equivalent tokey
exists;0
otherwise.
template <typename K> size_type count( const K& key ) const;Returns:
1
if an element with the key that compares equivalent to the valuekey
exists;0
otherwise.This overload only participates in the overload resolution if qualified-id
hash_compare_type::is_transparent
is valid and denotes a type.