cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
List of all members
static_clamp< T, t, m, M > Struct Template Reference

Defines the member value which is t, constrained to the range [m,M]. More...

Detailed Description

template<typename T, T t, T m, T M>
struct cxxomfort::st_math::static_clamp< T, t, m, M >

Defines the member value which is t, constrained to the range [m,M].

Utilities:
Compile-time clamp a valur between two values, pre-C++11.
Template Parameters
tA compile-time value of type T used as argument.
m,MCompile-time values of type T used as the minimum and maximum range in which to clamp value t .
See also
std::clamp
Precondition
m < M

The documentation for this struct was generated from the following file: