MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / bind_first

Function bind_first

include/chaiscript/dispatchkit/bind_first.hpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33 template<typename O, typename Ret, typename P1, typename ... Param>
34 auto bind_first(Ret (*f)(P1, Param...), O&& o)
35 {
36 return [f, o](Param...param) -> Ret {
37 return f(std::forward<O>(o), std::forward<Param>(param)...);
38 };
39 }
40
41 template<typename O, typename Ret, typename Class, typename ... Param>
42 auto bind_first(Ret (Class::*f)(Param...), O&& o)

Callers 1

funFunction · 0.85

Calls 2

get_pointerFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected