Moderne Konstante
constexpr int max = 20;
– Erlaubt sind iterationen: max++; max + 5;
– Nicht erlaubt sind Zuweisungen: max = 22;
Moderne Konstante
constexpr int max = 20;
– Erlaubt sind iterationen: max++; max + 5;
– Nicht erlaubt sind Zuweisungen: max = 22;