if constexpr: Compile-Time Branching in C++17

C++17 introduced if constexpr to support compile time conditional branch selection.
If the condition is true at compile time, only the true…