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:

Generated at Sun Feb 22 10:13:10 2009 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.5.6.
These pages are hosted on SourceForge.net