OpenTTD Source: EnumBitSetMask< Tstorage, Tenum, Tend_value > Struct Template Reference

OpenTTD Source 15.3

Static Public Attributes
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 164 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 165 of file enum_type.hpp.

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

- src/core/enum_type.hpp