MCPcopy Create free account
hub / github.com/Naios/function2 / invoke

Function invoke

include/function2/function2.hpp:218–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216/// Invokes the given callable object with the given arguments
217template <typename Callable, typename... Args>
218constexpr auto invoke(Callable&& callable, Args&&... args) noexcept(
219 noexcept(std::forward<Callable>(callable)(std::forward<Args>(args)...)))
220 -> decltype(std::forward<Callable>(callable)(std::forward<Args>(args)...)) {
221
222 return std::forward<Callable>(callable)(std::forward<Args>(args)...);
223}
224/// Invokes the given member function pointer by reference
225template <typename T, typename Type, typename Self, typename... Args>
226constexpr auto invoke(Type T::*member, Self&& self, Args&&... args) noexcept(

Calls 2

opaque_ptrMethod · 0.80
capacityMethod · 0.45

Tested by

no test coverage detected