34#ifndef UBCOMPARATORS_H
35#define UBCOMPARATORS_H
47template <
typename T,
typename C>
53 static const T &
apply(
const C &
c,
T C::*ptr) {
return c.*ptr; }
57template <
typename T,
typename C>
62 static T apply(C &
c,
T (C::*ptr)()) {
return (
c.*ptr)(); }
66template <
typename T,
typename C>
105template <
typename Ptr>
111template <
typename Comp,
typename Ptr>
117template <
template <
typename>
class Comp,
typename Ptr>
131template <
typename K ,
typename M ,
142template <
typename K ,
typename M ,
153template <
typename K ,
typename M ,
M(
K::*
Member) >
bool operator()(const C &lhs, const C &rhs)
bool operator()(const C &lhs, const C &rhs) const
MemComp(Ptr ptr, Comp c=Comp())
bool operator()(C &lhs, C &rhs) const
bool operator()(C &lhs, C &rhs)
std::shared_ptr< T > SPtr
MemComp< Ptr > membercomp(Ptr p)
static const T & apply(const C &c, T C::*ptr)
static T & apply(C &c, T C::*ptr)
static T apply(const C &c, T(C::*ptr)() const)
static T apply(C &c, T(C::*ptr)())