Class const_mem_fun_ref_t

Synopsis

#include <include/EASTL/functional.h>

template <typename Result, typename T>
class const_mem_fun_ref_t : public unary_function<T, Result>

Description

const_mem_fun_ref_t

Inheritance

Ancestors: unary_function

Methods

const_mem_fun_ref_t
operator()

Source

Lines 865-884 in include/EASTL/functional.h.

template <typename Result, typename T>
class const_mem_fun_ref_t : public unary_function<T, Result>
{
public:
    typedef Result (T::*MemberFunction)() const;
    inline explicit const_mem_fun_ref_t(MemberFunction pMemberFunction)
        : mpMemberFunction(pMemberFunction)
    {
        // Empty
    }
    inline Result operator()(const T& t) const
    {
        return (t.*mpMemberFunction)();
    }
protected:
    MemberFunction mpMemberFunction;
};





Add Discussion as Guest

Log in