Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Overview

This is a draft proposal for adding a std::byteswap function to the C++ standard library. This repository features the proposal and a working C++17 implementation for GCC/Clang/MSVC. On all platforms, it will insert a bswap instruction via a compiler intrinsic if called in a non-constexpr context, and will perform a constexpr byteswap otherwise.

The proposal is still in draft mode and will be updated with proper wording over time.

This implementation is released under an MIT License.

About

WG21 P1272 -- Byteswap Implementation

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages