sc::RefObjectEqual< T, EqualTo > Struct Template Reference
this functor can be used as a binary predicate for standard algorithms.
More...
#include <util/ref/ref.h>
List of all members.
|
Public Member Functions |
|
bool | operator() (const Ref< T > &obj1, const Ref< T > &obj2) |
Detailed Description
template<typename T, typename EqualTo = std::equal_to<T>>
struct sc::RefObjectEqual< T, EqualTo >
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&).
The documentation for this struct was generated from the following file: