MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Air

Class Air

12.23-constexprStaticInitFiasco0/main.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <cstdio>
5
6struct Air {
7 Air(int amount)
8 : _amount{amount}
9 {}
10
11 void Consume(int v) { _amount -= v; }
12 int Available() const { return _amount; }
13
14private:
15 int _amount;
16};
17
18struct Human {
19 Human(int breath);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected