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

Class annotations1

example/annotations.cpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16} int_2;
17
18class annotations1 {
19 public:
20 /*<<Constructor with named parameters of the same `int` type>>*/
21 BOOST_DI_INJECT(annotations1, (named = int_1) int i1, (named = int_2) int i2, int i3) : i1(i1), i2(i2), i3(i3) {
22 assert(i1 == 42);
23 assert(i2 == 87);
24 assert(i3 == 123);
25 }
26
27 private:
28 int i1 = 0;

Callers

nothing calls this directly

Calls 1

i1Class · 0.50

Tested by

no test coverage detected