MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / BOOST_PYTHON_MODULE

Function BOOST_PYTHON_MODULE

08-CallPolicies/policies.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24BOOST_PYTHON_MODULE(policies)
25{
26 class_<Example>("Example", no_init)
27 .def("__str__", &Example::name)
28 .def("factory", &Example::factory,
29 return_value_policy<manage_new_object>())
30 .staticmethod("factory")
31 .def("singleton", &Example::singleton,
32 return_value_policy<reference_existing_object>())
33 .staticmethod("singleton")
34 ;
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected