Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Common::BitMask< N > Struct Template Reference

#include <Utils.h>

Inheritance diagram for Harlinn::Common::BitMask< N >:
[legend]

Public Types

using type
 

Static Public Attributes

static constexpr type value = ( ( static_cast< type >( 1 ) << ( N - 1 ) ) - 1 ) ^ ( static_cast< type >( 1 ) << ( N - 1 ) )
 

Member Typedef Documentation

◆ type

template<size_t N>
using Harlinn::Common::BitMask< N >::type
Initial value:
std::conditional_t
<
N <= 8, Byte,
std::conditional_t
<
N <= 16, UInt16,
std::conditional_t
<
N <= 32, UInt32,
>
>
>
unsigned short UInt16
Definition BasicTypes.h:110
unsigned long long UInt64
Definition BasicTypes.h:126
unsigned int UInt32
Definition BasicTypes.h:115
unsigned char Byte
Definition BasicTypes.h:108

Member Data Documentation

◆ value

template<size_t N>
type Harlinn::Common::BitMask< N >::value = ( ( static_cast< type >( 1 ) << ( N - 1 ) ) - 1 ) ^ ( static_cast< type >( 1 ) << ( N - 1 ) )
staticconstexpr

The documentation for this struct was generated from the following file: