Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Uniform element identity helper for a list of values. More...
#include <pack.hpp>
Public Types | |
using | uniform_type = typename std::array<decltype(lambda(std::make_index_sequence<size>{})), size> |
Type alias for the uniform std::array of elements. | |
using | value_type = typename uniform_type::value_type |
Value type of the uniform_type. |
Static Public Attributes | |
static constexpr std::size_t | size = sizeof...(elems) |
Number of elements. | |
static constexpr bool | valid |
Check if all elements have the same decayed type and are comparable. | |
static constexpr uniform_type | identity_value {elems...} |
Static array holding the elements. |
Uniform element identity helper for a list of values.
Enforces all elements have the same type and are comparable.
elems | Non-type template parameter pack of elements. |
|
staticconstexpr |
Check if all elements have the same decayed type and are comparable.