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

Function main

example/concepts.cpp:36–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int main() {
37 {
38 te::var<Drawable> auto drawable = Square{};
39 drawable.draw(std::cout); // prints Square
40 }
41
42 {
43 te::var<Drawable> auto drawable = Circle{};
44 drawable.draw(std::cout); // prints Circle
45 }
46
47 {
48 auto drawable = Square{};
49 draw(drawable); // prints Square
50 }
51
52 {
53 auto drawable = Circle{};
54 draw(drawable); // prints Circle
55 }
56}
57#else
58int main() {}
59#endif

Callers

nothing calls this directly

Calls 2

drawFunction · 0.70
drawMethod · 0.45

Tested by

no test coverage detected