Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boost-ext/di
/ T
Class
T
example/user_guide/annotated_constructor_injection.cpp:17–21 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
auto int2 = [] {};
16
17
struct T {
18
BOOST_DI_INJECT(T, (named = int1) int a, (named = int2) int b) : a(a), b(b) {}
19
int a = 0;
20
int b = 0;
21
};
22
23
int main() {
24
// clang-format off
Callers
1
main
Function · 0.70
Calls
1
a
Class · 0.50
Tested by
no test coverage detected