kblib 0.2.3
General utilities library for modern C++
|
A function object implementing the equivalence relationship over a comparison predicate. More...
#include <kblib/algorithm.h>
Public Member Functions | |
constexpr auto | operator() (const Obj &a, const Obj &b, Compare comp) const noexcept(noexcept(equals(a, b, comp))) -> bool |
A function object implementing the equivalence relationship over a comparison predicate.
Compare | The predicate to compare over. If void, use the < operator. (Equivalent to defaulting to std::less.) |
Obj | The type of objects to compare. If void, the operator() is a template. |
Definition at line 123 of file algorithm.h.
|
inlineconstexprnoexcept |
Definition at line 124 of file algorithm.h.