WG21 Operations Support
Switch to dark theme
Switch to light theme
Sign In
Overview
Papers
Updates
Discussion
Books
Community
Resources
Events
About
Standard
ISO C++ Standard
ISOCPP
ISOCPP.org
ISO
ISO.org
Switch to dark theme
Switch to light theme
Sign In
Mailings
›
July 2025
›
P3793R0
← P3792R0
|
P3794R0 →
P3793R0 — Better shifting
Brian Bi, Jan Schultke
SG6
Revisions
R2
Jul 2026
R0
Jul 2025
View on open-std.org
GitHub issue #2399
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:
×
Sign in
Use your Google or GitHub account.
Google
GitHub