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

Class Drawable

example/nonowning.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected