1 | initial version |
Yes, in C++17, lambda expressions can be evaluated as constexpr under certain conditions. According to the C++17 standard, a lambda expression can be constexpr if:
If these conditions are met, the lambda can be declared as constexpr and evaluated at compile time.