MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / def_function

Class def_function

external/boost/boost/parameter/python.hpp:429–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 };
428
429 struct def_function
430 {
431 def_function(char const* name)
432 : name(name)
433 {}
434
435 template <class F>
436 void operator()(F f) const
437 {
438 boost::python::def(name, f);
439 }
440
441 template <class F, class Keywords>
442 void operator()(F f, Keywords const& keywords) const
443 {
444 boost::python::def(name, f, keywords);
445 }
446
447 char const* name;
448 };
449
450} // namespace aux
451

Callers 1

defFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected