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.
Asked: 2023-06-16 22:21:31 +0000
Seen: 11 times
Last updated: Jun 16 '23