OpenTTD Source 20250312-master-gcdcc6b491d
EnumBitSetMask< Tstorage, Tenum, Tend_value > Struct Template Reference

Helper template structure to get the mask for an EnumBitSet from the end enum value. More...

#include <enum_type.hpp>

Static Public Attributes

static constexpr Tstorage value = std::numeric_limits<Tstorage>::max() >> (std::numeric_limits<Tstorage>::digits - to_underlying(Tend_value))
 

Detailed Description

template<typename Tstorage, typename Tenum, Tenum Tend_value>
struct EnumBitSetMask< Tstorage, Tenum, Tend_value >

Helper template structure to get the mask for an EnumBitSet from the end enum value.

Definition at line 115 of file enum_type.hpp.

Field Documentation

◆ value

template<typename Tstorage , typename Tenum , Tenum Tend_value>
constexpr Tstorage EnumBitSetMask< Tstorage, Tenum, Tend_value >::value = std::numeric_limits<Tstorage>::max() >> (std::numeric_limits<Tstorage>::digits - to_underlying(Tend_value))
staticconstexpr

Definition at line 116 of file enum_type.hpp.


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