T230420 Unconditional compile-time expression
今天说两个关于编译期的小技巧。 看如下例子: struct S { int val; constexpr int size() const { return val * (val + 1) / 2; … Continue Reading T230420 Unconditional compile-time expression
Dive deep into the C++ core, and discover more!
今天说两个关于编译期的小技巧。 看如下例子: struct S { int val; constexpr int size() const { return val * (val + 1) / 2; … Continue Reading T230420 Unconditional compile-time expression