C++ syntax leaves programmers with some discretion about where to place the keywords const and constexpr in declarations.
As an "East const" advocate, I place const to the right of the type that it modifies. I encourage others to do the same.
Despite the similarities between const and constexpr, I do not recommend "East constexpr". I'll show you some insightful things about C++ declarations to explain why this makes sense.
[ Ссылка ]
Ещё видео!