Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boost-ext/di
/ module
Function
module
example/bind_non_owning_ptr.cpp:16–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
using Pointer = int;
15
16
auto module(Pointer* ptr) { return di::bind<Pointer>().to(*ptr); }
17
18
struct app {
19
app(Pointer& ptr) { assert(42 == ptr); }
Callers
6
example.cpp
File · 0.70
main
Function · 0.70
main
Function · 0.70
main
Function · 0.50
main
Function · 0.50
main
Function · 0.50
Calls
1
to
Method · 0.45
Tested by
3
main
Function · 0.40
main
Function · 0.40
main
Function · 0.40