1

的用法constexpr非常简单,即确保可以在编译时评估代码本身。

但是 C++ 20 的最新特性提供constinit并且consteval有点令人困惑。constinit有人可以提供and的实际用例consteval吗?

4

0 回答 0