M5Utility 0.0.10 git rev:e54335a
Loading...
Searching...
No Matches
byteswap.hpp File Reference

std::byteswap for less than C++23 More...

#include <stdint.h>
#include <type_traits>
#include <cstring>

Go to the source code of this file.

Classes

struct  m5::stl::detail::is_int128< T >
 
struct  m5::stl::detail::is_integer_or_enum< T >
 
struct  m5::stl::detail::is_unsigned_ex< T >
 
struct  m5::stl::detail::make_unsigned_impl< T >
 
struct  m5::stl::detail::make_unsigned_ex< T >
 

Namespaces

namespace  m5
 Top level namespace of M5.
 
namespace  m5::stl::detail
 \exclude
 

Functions

template<typename T , typename std::enable_if< detail::is_integer_or_enum< T >::value, std::nullptr_t >::type = nullptr>
constexpr T m5::stl::byteswap (T v) noexcept
 byteswap for integral type
 
template<typename T , typename std::enable_if<!detail::is_integer_or_enum< T >::value, std::nullptr_t >::type = nullptr>
m5::stl::byteswap (T)=delete
 byteswap for integral type
 

Detailed Description

std::byteswap for less than C++23