Return the number of elements matching key.

Synopsis

Declared in <bslstl_multimap.h>

template<class LOOKUP_KEY>
size_type
count(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,
                                                   LOOKUP_KEY>::value;

Description

Return the number of value_type objects within this multimap whose keys are equivalent to the specified key.

Note: implemented inline due to Sun CC compilation error.

Return Value

number of elements equivalent to key

Parameters

Name

Description

key

key value to count

Created with MrDocs