VCCC  2024.05
VisualCamp Common C++ library
byte.hpp File Reference
#include <cassert>
#include <cstddef>
#include <initializer_list>
#include <type_traits>

Go to the source code of this file.

Classes

class  byte
 

Namespaces

 vccc
 

Functions

template<typename IntegerType >
constexpr std::enable_if_t< std::is_integral< IntegerType >::value, IntegerType > to_integer (byte b) noexcept
 
template<class IntegerType >
constexpr std::enable_if_t< std::is_integral< IntegerType >::value, byte > operator<< (byte b, IntegerType shift) noexcept
 
template<class IntegerType >
constexpr std::enable_if_t< std::is_integral< IntegerType >::value, byte > operator>> (byte b, IntegerType shift) noexcept
 
template<class IntegerType >
constexpr std::enable_if_t< std::is_integral< IntegerType >::value, byte & > operator<<= (byte &b, IntegerType shift) noexcept
 
template<class IntegerType >
constexpr std::enable_if_t< std::is_integral< IntegerType >::value, byte & > operator>>= (byte &b, IntegerType shift) noexcept
 
constexpr byte operator| (byte l, byte r) noexcept
 
constexpr byte operator& (byte l, byte r) noexcept
 
constexpr byte operator^ (byte l, byte r) noexcept
 
constexpr byte operator~ (byte b) noexcept
 
constexpr byte & operator|= (byte &l, byte r) noexcept
 
constexpr byte & operator&= (byte &l, byte r) noexcept
 
constexpr byte & operator^= (byte &l, byte r) noexcept