BloombergLP::bslstl::MapComparator::operator()

Return whether lhs is ordered before the key stored in rhs.

Synopsis

Declared in <bslstl_mapcomparator.h>

template<class LOOKUP_KEY>
bool
operator()(
    LOOKUP_KEY const& lhs,
    bslalg::RbTreeNode const& rhs) const;

Description

Return true if the specified lhs is less than (ordered before, according to the comparator held by this object) value().first of the specified rhs after being cast to NodeType, and false otherwise. The behavior is undefined unless rhs can be safely cast to NodeType.

Return Value

true if lhs is ordered before the key in rhs, and false otherwise

Parameters

NameDescription
lhslookup key compared against the node's key
rhstree node whose key is compared to lhs