C++26: std::constant_wrapper -- Sandor Dargo
C++26 introduces std::constant_wrapper and its shorthand std::cw, offering a more convenient way to preserve compile-time values across function boundaries. From simplifying template arguments to supporting compile-time arithmetic and function calls, this new utility makes constant expressions…
Sources
- T1C++26: std::constant_wrapper -- Sandor DargoLanguage blogs: Rust / Go / TypeScript / Swift / Kotlin / Java / .NET / Ruby / PHP / Elixir / ISO C++