Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Computes the maximum value among a pack of compile-time constants. More...
#include <algorithms.hpp>
Public Types | |
using | identity_type = typename templa::internal::uniform_element_identity<Es...> |
The type that provides the uniform container of values. | |
Public Types inherited from templa::internal::uniform_element_identity< Es... > | |
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 value_type | value |
The maximum value among the compile-time constants. | |
Static Public Attributes inherited from templa::internal::uniform_element_identity< Es... > | |
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. |
Computes the maximum value among a pack of compile-time constants.
Inherits from templa::internal::uniform_element_identity to extract and store the values in a uniform container, then determines the maximum using std::max_element.
Es | The pack of compile-time constant values. |
|
staticconstexpr |
The maximum value among the compile-time constants.