CCIMXDesktop
 
Loading...
Searching...
No Matches
ValueLimitUtils::StaticLimiter< MIN, MAX > Class Template Reference

Compile-time value limiter with fixed bounds. More...

#include <ValueLimiter.hpp>

Static Public Member Functions

static constexpr ValueLimitType boundValue (ValueLimitType value)
 Clamps a value to the static bounds.
 

Detailed Description

template<ValueLimitType MIN = 0, ValueLimitType MAX = 100>
class ValueLimitUtils::StaticLimiter< MIN, MAX >

Compile-time value limiter with fixed bounds.

Template Parameters
MINThe minimum bound (default 0)
MAXThe maximum bound (default 100)

Member Function Documentation

◆ boundValue()

template<ValueLimitType MIN = 0, ValueLimitType MAX = 100>
static constexpr ValueLimitType ValueLimitUtils::StaticLimiter< MIN, MAX >::boundValue ( ValueLimitType  value)
inlinestaticconstexpr

Clamps a value to the static bounds.

Parameters
valueThe value to clamp
Returns
The clamped value

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