MCPcopy Create free account
hub / github.com/boost-ext/di / example

Method example

example/pool_provider.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100/*<define `example` class as usual>*/
101struct example {
102 explicit example(int i, std::unique_ptr<interface, pool_deleter> up, std::shared_ptr<interface> sp) {
103 assert(i == 42);
104 assert(dynamic_cast<implementation*>(up.get()));
105 assert(dynamic_cast<implementation*>(sp.get()));
106 }
107};
108
109#if defined(_MSC_VER)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected