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

Class DrawableDeclareCustomStorage

test/te.cpp:123–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121};
122
123struct DrawableDeclareCustomStorage
124 : te::poly<DrawableDeclare, te::local_storage<16>> {
125 using te::poly<DrawableDeclare, te::local_storage<16>>::poly;
126
127 void draw(std::ostream &out) const {
128 te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
129 }
130};
131
132test should_erase_and_declare_with_custom_storage_call = [] {
133 DrawableDeclareCustomStorage drawable{Square{}};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected