P3793R0 — Better shifting
Brian Bi, Jan Schultke
SG6
Revisions R2Jul 2026R0Jul 2025
We propose the addition of functions to the `<bit>` header to perform bit shifts on integer operands. The `std::shl` and `std::shr` functions provide the following advantages over the built-in shift operators: