Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
void draw(te::poly<Drawable> const &drawable) { drawable.draw(std::cout); }
29
30
void Drawable::draw(std::ostream &out) const {
31
te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
32
}
33
34
// usage
35
int main() {
Callers
1
draw
Function · 0.45
Calls
1
call
Function · 0.50
Tested by
no test coverage detected