MPQC
3.0.0-alpha
|
this functor can be used as a binary predicate for standard algorithms. More...
#include <util/ref/ref.h>
Public Member Functions | |
bool | operator() (const Ref< T > &obj1, const Ref< T > &obj2) |
this functor can be used as a binary predicate for standard algorithms.
For example, it can be used as an argument to std::hash_map that uses keys of sc::Ref<T> type. Optional EqualTo argument is a default-constructible binary predicate that takes 2 values of type T. By default it calls operator==(const T&, const T&).