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

Class Air

12.26-constexprStaticInitFiasco3/main.cpp:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected