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

Method BCD

06.14-bcdConstexpr/main.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6class BCD {
7public:
8 constexpr BCD(int v, int significance)
9 : mSignificance{significance}
10 , mValue{Adjust(v)}
11 {}
12
13 constexpr operator int() const { return mValue; }
14

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected