20 General utilities library [utilities] (original) (raw)

20.14 Function objects [function.objects]

20.14.16 Function template mem_­fn [func.memfn]

🔗

template<class R, class T> constexpr _unspecified_ mem_fn(R T::* pm) noexcept;

1

#

Returns: A simple call wrapper ([func.def]) fnwith call pattern invoke(pmd, call_­args...), wherepmd is the target object of fn of type R T​::​*direct-non-list-initialized with pm, andcall_­args is an argument pack used in a function call expression ([expr.call]) of pm.