MCPcopy Create free account
hub / github.com/boost-ext/te / Example

Class Example

example/injection.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32class Example {
33 public:
34 Example(Drawable const drawable, std::ostream &out)
35 : drawable{drawable}, out{out} {}
36
37 void draw() { drawable.draw(out); }
38
39 private:
40 Drawable const drawable;
41 std::ostream &out;
42};
43
44int main() {
45 namespace di = boost::di;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected