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

Synopsis

Declared in <bslstl_setcomparator.h>

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

Description

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

Return Value

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

Parameters

Name

Description

lhs

tree node whose key is compared

rhs

lookup key to compare

Created with MrDocs