|
cds
1.4.0
|
[type-option] Option setter for key comparing More...
#include <cds/opt/compare.h>
[type-option] Option setter for key comparing
The option sets a type of a functor to compare keys. For comparing two keys k1 and k2 the functor must return:
Functor is a functor with following interface:
Note that the functor must return int, not a bool value.
There are predefined type for Functor:
std::less predicate.You may implement your own comparing functor that satisfies Functor interface.
About relation between opt::less and opt::compare option setters see opt::less description.