MCPcopy 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

14using Pointer = int;
15
16auto module(Pointer* ptr) { return di::bind<Pointer>().to(*ptr); }
17
18struct app {
19 app(Pointer& ptr) { assert(42 == ptr); }

Callers 6

example.cppFile · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

toMethod · 0.45

Tested by 3

mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40