Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by estebank on Tuesday November 29, 2022 @12:41AM
(#33784078)
Placement is not yet a language feature, but it can be expressed in a verbose manner and some have written macros for it.
Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by virtualritz on Tuesday November 29, 2022 @07:56AM
(#33787008)
I was asking in the context of OPs claim. And that was regarding low level optimizations. I think only placement is a valid counterexample here but AFAIK there is support for Rust in that, if a bit elaborate in expression.
At least variadic generics isn't really a performance thing, it's just an example of a rough edge you run into here and there. Specialization and placement can be pretty important for performance though!