Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Computes the minimum value from a container-like object at compile time. More...
#include <algorithms.hpp>
Public Types | |
using | type = typename decltype(e)::value_type |
The type of the elements in the container. |
Static Public Attributes | |
static constexpr std::size_t | size = e.size() |
The size of the container. | |
static constexpr auto | value |
The minimum value computed at compile time from the container. |
Computes the minimum value from a container-like object at compile time.
Accepts a container-like expression (e.g., std::array, std::vector constexpr) and computes the minimum element value at compile-time by unpacking it.
e | A container expression with random access and known size. @requires The container must satisfy the concepts::Container constraint. |
|
staticconstexpr |
The minimum value computed at compile time from the container.
Uses the min struct to evaluate the minimum by unpacking the container.