docs
Loading...
Searching...
No Matches
EnumRange< E >

#include <Ultralight/js/TypeTraits.h>

Overview

template<typename E>
struct ultralight::js::EnumRange< E >

The range of values searched for an enum's enumerator names.

Only enumerators whose values fall in this range (0 to 63 by default) convert by name. Specialize it for enums with values outside that range:

template <> struct js::EnumRange<MyFlags> {
static constexpr long long min = 0, max = 255;
};
The range of values searched for an enum's enumerator names.
Definition TypeTraits.h:293
static constexpr long long max
Highest underlying value scanned, inclusive.
Definition TypeTraits.h:295
static constexpr long long min
Lowest underlying value scanned, inclusive.
Definition TypeTraits.h:294

The range can span at most 1024 values. An enum with no enumerator in its range fails to compile.

Static Public Attributes

static constexpr long long min = 0
 Lowest underlying value scanned, inclusive.
static constexpr long long max = 63
 Highest underlying value scanned, inclusive.

Member Data Documentation

◆ max

template<typename E>
long long max = 63
staticconstexpr

Highest underlying value scanned, inclusive.

◆ min

template<typename E>
long long min = 0
staticconstexpr

Lowest underlying value scanned, inclusive.


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