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

Method draw

example/polymorphism/variant.cpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 explicit App(const Drawable drawable) : drawable{drawable} {}
31
32 void draw(std::ostream& out) const {
33 std::visit([&out](const auto& drawable) { drawable.draw(out); }, drawable);
34 }
35
36 private:
37 const Drawable drawable;

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected