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

Function module

benchmark/bind_interface/dicpp.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23void module(di::registry& r) {
24 // clang-format off
25 r.add(r.type<I>().implementation<Impl>());
26 // clang-format on
27}
28
29std::unique_ptr<I> test() {
30 di::injector injector;

Callers 1

testFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected