ΒΆtemplate <class F, class... Args>
inline constexpr decltype(auto) call(
F&& f,
Args&&... args)
template <class F, class... Args>
inline constexpr decltype(auto) call(
F&& f,
Args&&... args)
Description
Invokes the [`Fn`]($sus::fn::Fn), passing any given arguments along, and returning the result. This function is like [`std::invoke`](https://en.cppreference.com/w/cpp/utility/functional/invoke) but it provides the following additional guiderails: * Verifies that the thing being invoked is called as a const lvalue so that the correct overload will be invoked.
Declared at: sus/fn/fn_concepts.h:461
Templates
- F
- Args
Parameters
- F&& f
- Args&&... args