Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
的用法constexpr非常简单,即确保可以在编译时评估代码本身。
constexpr
但是 C++ 20 的最新特性提供constinit并且consteval有点令人困惑。constinit有人可以提供and的实际用例consteval吗?
constinit
consteval