|
cds
2.3.2
|
[type-option] Option setter for less predicate
More...
#include <cds/opt/compare.h>
[type-option] Option setter for less predicate
The option sets a binary predicate that tests whether a value of a specified type is less than another value of that type. Functor interface is similar to std::less predicate interface. The standard predicate std::less can act as Functor:
In addition, the option setter may sets non-standard 2-type predicate (std::binary_function):
Generally, the default type for Functor is std::less but it depends on the container used.
opt::compare option setter has high priority. If opt::compare and opt::less options are specified for a container, the opt::compare option is used: