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…

dev

Sources

C++26: std::constant_wrapper -- Sandor Dargo · TechNews