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

Class Drawable

example/concepts.cpp:15–21  ·  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,
18 auto &out) -> decltype(self.draw(out)) { self.draw(out); },
19 *this, out);
20 }
21};
22
23struct Square {
24 void draw(std::ostream &out) const { out << "Square"; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected