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

Class Drawable

example/container.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected