Skip to content

constexpr and const

Difference between constexpr and const

stackoverflow Difference between constexpr and const

NOTE: 解答的非常详细

我的理解

const 是 常量

constexpr compile time computation、constant expression、充分发挥compile time computation