Class const_mem_fun1_ref_t

Synopsis

#include <include/EASTL/functional.h>

template <typename Result, typename T, typename Argument>
class const_mem_fun1_ref_t : public binary_function<T, Argument, Result>

Description

const_mem_fun1_ref_t

Inheritance

Ancestors: binary_function

Methods

const_mem_fun1_ref_t
operator()

Source

Lines 889-908 in include/EASTL/functional.h.

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





Add Discussion as Guest

Log in