MPQC  3.0.0-alpha
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>

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:

Generated at Sun Jan 26 2020 23:24:10 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.