pabigot  0.1.1
C++ support classes
Namespaces | Functions
ccbysa30.hpp File Reference

Material from external sources with CC-BY-SA-3.0 licensing. More...

#include <cinttypes>
#include <climits>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

 pabigot
 Root for all pabigot namespaces.
 
 pabigot::external
 Namespace enclosing all material derived from external sources.
 
 pabigot::external::ccbysa30
 External material licensed under Creative Commons Attribution Share Alike 3.0.
 

Functions

template<class T , std::size_t... N>
constexpr T pabigot::external::ccbysa30::details::bswap_impl (T i, std::index_sequence< N... >)
 C++17 constexpr byte-swapping implementation. More...
 
template<class T , class U = typename std::make_unsigned<T>::type>
constexpr U pabigot::external::ccbysa30::bswap (T i)
 C++17 constexpr byte-swapping implementation. More...
 

Detailed Description

Material from external sources with CC-BY-SA-3.0 licensing.

The attribution for such material is documented here, isolated to simplify license compliance checking.

Function Documentation

◆ bswap_impl()

template<class T , std::size_t... N>
constexpr T pabigot::external::ccbysa30::details::bswap_impl ( i,
std::index_sequence< N... >   
)
constexpr