OpenTTD Source 20260206-master-g4d4e37dbf1
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 167 of file enum_type.hpp.

Field Documentation

◆ value

template<typename Tstorage, typename Tenum, Tenum Tend_value>
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 168 of file enum_type.hpp.


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