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

Method singleton

08-CallPolicies/policies.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 return new Example("factory");
12 }
13 static Example* singleton()
14 {
15 static Example instance = Example("singleton");
16 return &instance;
17 }
18};
19
20#include <boost/python.hpp>

Callers 1

policies.pyFile · 0.80

Calls 1

ExampleClass · 0.70

Tested by

no test coverage detected