Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Computes the minimum value among a pack of compile-time constants. More...
#include <algorithms.hpp>
Public Types | |
using | identity_type = typename templa::internal::uniform_element_identity<Es...> |
Alias for the identity type that represents the uniform compile-time 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 minimum 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 minimum value among a pack of compile-time constants.
This struct accepts a parameter pack of compile-time constants and computes the minimum value using std::min_element.
Es | The pack of compile-time constant values. |
|
staticconstexpr |
The minimum value among the compile-time constants.