bsl::multiset::count

Return the number of elements equivalent to key.

Synopsis

Declared in <bslstl_multiset.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 multiset that are equivalent to the specified key.

Note: implemented inline due to Sun CC compilation error.

Return Value

number of elements equivalent to key

Parameters

NameDescription
keytransparent key value to count