Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boost-ext/di
/ example
Method
example
example/custom_provider.cpp:24–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
22
/*<define `example` class as usual>*/
23
struct example {
24
explicit example(int i, std::unique_ptr<interface> up) {
25
assert(i == 42);
26
assert(dynamic_cast<implementation*>(up.get()));
27
}
28
};
29
30
/*<define `custom provider`>*/
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected