MaxMatrix
Drive chained 8x8 LED dot matrix modules with MAX7219.
Loading...
Searching...
No Matches
max_matrix::internal::ArrayElement< T, Value, Braced > Struct Template Reference

Converts a value of make_array() that would narrow, a number, into an element. More...

#include <array.h>

Static Public Member Functions

static constexpr bool Fits (Value value)
 Returns whether value is the same as an element as it was.
static constexpr T Of (Value value)
 Returns value as an element, or stops the build if it does not fit.

Detailed Description

template<typename T, typename Value, typename Braced = T>
struct max_matrix::internal::ArrayElement< T, Value, Braced >

Converts a value of make_array() that would narrow, a number, into an element.

Template Parameters
TThe type of the elements.
ValueThe type of the value, as written.
BracedT, if a T is made of a Value in braces, which refuse narrowing; then the specialization below applies.

Member Function Documentation

◆ Fits()

template<typename T, typename Value, typename Braced = T>
constexpr bool max_matrix::internal::ArrayElement< T, Value, Braced >::Fits ( Value value)
inlinestaticconstexpr

Returns whether value is the same as an element as it was.

Parameters
[in]valueThe value.

◆ Of()

template<typename T, typename Value, typename Braced = T>
constexpr T max_matrix::internal::ArrayElement< T, Value, Braced >::Of ( Value value)
inlinestaticconstexpr

Returns value as an element, or stops the build if it does not fit.

Parameters
[in]valueThe value.

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