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

Method factory

08-CallPolicies/policies.cpp:9–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7public:
8 std::string name() const { return mName; }
9 static Example* factory()
10 {
11 return new Example("factory");
12 }
13 static Example* singleton()
14 {
15 static Example instance = Example("singleton");

Callers 2

inheritance.pyFile · 0.80
policies.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected