Files
2025-10-25 03:02:53 +03:00

20 lines
831 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[func.memfn]
# 22 General utilities library [[utilities]](./#utilities)
## 22.10 Function objects [[function.objects]](function.objects#func.memfn)
### 22.10.16 Function template mem_fn [func.memfn]
[🔗](#lib:mem_fn)
`template<class R, class T> constexpr unspecified mem_fn(R T::* pm) noexcept;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L13578)
*Returns*: A simple call wrapper ([[func.require]](func.require#term.simple.call.wrapper "22.10.4Requirements")) fn with 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]](expr.call "7.6.1.3Function call")) of fn[.](#1.sentence-1)