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

Class App

example/polymorphism/function.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21class App {
22 public:
23 explicit App(const Drawable drawable) : drawable{drawable} {}
24 void draw(std::ostream& out) const { drawable(out); }
25
26 private:
27 const Drawable drawable;
28};
29
30struct Square {
31 void operator()(std::ostream& out) const { out << "Square"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected