function template
std::invoke
- Header
<functional>- Draft
- [func.invoke]
- Scope
std- cppreference
- std::invoke
Synopsis
template<class F, class... Args>
requires is_invocable_v<F, Args...>
constexpr invoke_result_t<F, Args...> invoke(
F&& f,
Args&&... args) noexcept(is_nothrow_invocable_v<F, Args...>);