C++26: A Giant Leap for Compile-Time Standard Library Features
2025-05-01
C++26 is set to revolutionize compile-time programming with a massive boost to constexpr support in the standard library. Several proposals (P2562R1, P1383R2, P3074R7, P3372R2, P3508R0, P3369R0) bring stable sorting algorithms, and functions, improved union rules, nearly all containers and adaptors, and specialized memory algorithms into the constexpr fold. This significantly enhances compile-time capabilities, allowing, for example, compile-time sorting of constexpr containers. While std::hive and std::hash remain excluded due to limitations, C++26 promises a dramatic expansion of compile-time programming possibilities.
Development
standard library