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

Class example

example/example.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119};
120
121class example {
122 public:
123 example(std::unique_ptr<direct> d, interface &ref, int i) : i_(i) {
124 assert(false == d->uniform_.b);
125 assert(d->sp_.get() == d->uniform_.sp.get());
126 assert(&ref == d->sp_.get());
127 }
128
129 auto run() const { return i_ == 42; }
130
131 private:
132 int i_ = 0;
133};
134
135int main() {
136 auto runtime_value = false;

Callers 1

example.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected