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

#include <Ultralight/dom/data/ValueTraits.h>

Overview

template<typename E>
struct ultralight::dom::data::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) bind by name. Specialize it for enums with values outside that range:

template <> struct ultralight::dom::data::EnumRange<MyFlags> {
static constexpr long long min = 0, max = 255;
};
The range of values searched for an enum's enumerator names.
Definition ValueTraits.h:58
static constexpr long long max
The highest value searched (inclusive).
Definition ValueTraits.h:60
static constexpr long long min
The lowest value searched (inclusive).
Definition ValueTraits.h:59

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

Note
This is separate from js::EnumRange. An enum you use with both APIs needs a specialization of each.

Static Public Attributes

static constexpr long long min = 0
 The lowest value searched (inclusive).
static constexpr long long max = 63
 The highest value searched (inclusive).

Member Data Documentation

◆ max

template<typename E>
long long max = 63
staticconstexpr

The highest value searched (inclusive).

◆ min

template<typename E>
long long min = 0
staticconstexpr

The lowest value searched (inclusive).


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