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

Class DrawableDeclare

test/te.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75};
76
77struct DrawableDeclare : te::poly<DrawableDeclare> {
78 using te::poly<DrawableDeclare>::poly;
79
80 void draw(std::ostream &out) const {
81 te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
82 }
83};
84
85test should_erase_and_declare_call = [] {
86 DrawableDeclare drawable{Square{}};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected