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

Method draw

example/forward.cpp:30–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28void draw(te::poly<Drawable> const &drawable) { drawable.draw(std::cout); }
29
30void Drawable::draw(std::ostream &out) const {
31 te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
32}
33
34// usage
35int main() {

Callers 1

drawFunction · 0.45

Calls 1

callFunction · 0.50

Tested by

no test coverage detected