MCPcopy Create free account
hub / github.com/Apress/design-patterns-in-modern-cpp / withdraw

Method withdraw

Structural/Proxy/proxy.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 void withdraw(int amount) override
27 {
28 if (amount <= balance) balance -= amount;
29 }
30
31 friend ostream& operator<<(ostream& os, const CurrentAccount& obj)
32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected