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

Function module_model

example/modules/module_model.cpp:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace di = boost::di;
17
18di::injector<model&> module_model() noexcept {
19 // clang-format off
20 return di::make_injector(
21 di::bind<iboard>().to<board>()
22 , di::bind<int>().named(rows).to(42)
23 , di::bind<int>().named(colls).to(42)
24 );
25 // clang-format on
26}

Callers 1

mainFunction · 0.85

Calls 3

make_injectorFunction · 0.50
toMethod · 0.45
namedMethod · 0.45

Tested by

no test coverage detected