Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boost-ext/di
/ draw
Method
draw
example/polymorphism/inheritance.cpp:23–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
public:
22
explicit App(std::unique_ptr<const Drawable> drawable) : drawable{std::move(drawable)} {}
23
void draw(std::ostream& out) const { drawable->draw(out); }
24
25
private:
26
std::unique_ptr<const Drawable> drawable;
Callers
1
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected