Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boost-ext/di
/ module_view
Function
module_view
example/modules/module_view.cpp:17–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
namespace di = boost::di;
16
17
di::injector<view&> module_view() noexcept {
18
// clang-format off
19
return di::make_injector(
20
di::bind<ibutton>().to<button>()
21
, di::bind<iwindow>().to<window>()
22
);
23
// clang-format on
24
}
Callers
1
main
Function · 0.85
Calls
1
make_injector
Function · 0.50
Tested by
no test coverage detected