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

Class Drawable

example/injection.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace te = boost::te;
15
16struct Drawable : te::poly<Drawable> {
17 using te::poly<Drawable>::poly;
18
19 void draw(std::ostream &out) const {
20 te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
21 }
22};
23
24struct Square {
25 void draw(std::ostream &out) const { out << "Square"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected