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

Function main

example/nonowning.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35void draw(Drawable drawable) { drawable.draw(std::cout); }
36
37int main() {
38 Circle c{};
39 Square s{};
40
41 draw(c); // prints Circle
42 draw(s); // prints Square
43
44 assert(1 == s.value);
45}

Callers

nothing calls this directly

Calls 1

drawFunction · 0.70

Tested by

no test coverage detected