constexpr if
Let's study constexpr if in this lesson.
We'll cover the following...
constexpr if
(C++17)
constexpr if
enables us to compile source code
conditionally.
if constexpr (cond) statement1;
else statement2;
- The expression
cond
has to