Files
cppdraft_translate/cppdraft/refwrap/invoke.md
2025-10-25 03:02:53 +03:00

29 lines
925 B
Markdown
Raw 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.

[refwrap.invoke]
# 22 General utilities library [[utilities]](./#utilities)
## 22.10 Function objects [[function.objects]](function.objects#refwrap.invoke)
### 22.10.6 Class template reference_wrapper [[refwrap]](refwrap#invoke)
#### 22.10.6.5 Invocation [refwrap.invoke]
[🔗](#lib:operator(),reference_wrapper)
`template<class... ArgTypes>
constexpr invoke_result_t<T&, ArgTypes...>
operator()(ArgTypes&&... args) const noexcept(is_nothrow_invocable_v<T&, ArgTypes...>);
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L11808)
*Mandates*: T is a complete type[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L11812)
*Returns*: *INVOKE*(get(), std::forward<ArgTypes>(args)...) ([[func.require]](func.require "22.10.4Requirements"))[.](#2.sentence-1)