MCPcopy Create free account
hub / github.com/AlexInLog/ReactivePlusPlus / apply

Function apply

src/rpp/rpp/utils/tuple.hpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61 template<typename... TArgs, std::invocable<TArgs&&..., Args&...> Callable>
62 auto apply(Callable&& callable, TArgs&&... args)
63 {
64 return std::forward<Callable>(callable)(std::forward<TArgs>(args)..., static_cast<tuple_leaf<Indices, Args>*>(this)->get()...);
65 }
66
67 template<typename... TArgs, std::invocable<TArgs&&..., Args...> Callable>
68 auto apply(Callable&& callable, TArgs&&... args) const

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected