Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Reverses a compile-time pack of constant values. More...
#include <algorithms.hpp>
Public Types | |
using | identity_type = typename templa::internal::uniform_element_identity<elems...> |
The identity type wrapping the parameter pack. | |
using | array_type = typename identity_type::uniform_type |
The array type representing the uniform values. | |
Public Types inherited from templa::internal::uniform_element_identity< elems... > | |
using | uniform_type |
Type alias for the uniform std::array of elements. | |
using | value_type |
Value type of the uniform_type. |
Static Public Attributes | |
static constexpr auto | reverse_sequence |
The reversed array, computed at compile time. | |
Static Public Attributes inherited from templa::internal::uniform_element_identity< elems... > | |
static constexpr std::size_t | size |
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 |
Static array holding the elements. |
Reverses a compile-time pack of constant values.
Inherits from templa::internal::uniform_element_identity to treat the pack as a uniform array, then computes a reversed version of the array at compile time.
elems | A parameter pack of compile-time constant values. |
|
staticconstexpr |
The reversed array, computed at compile time.
Constructs a new array where the order of elements is reversed relative to the input pack.