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

Class Drawable

example/combined.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected