AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
aui::ranged_number< UnderlyingType, min, max > Struct Template Reference

Clamps the possible values for a number to the specified range: [min;max]. More...

Detailed Description

template<aui::arithmetic UnderlyingType, auto min, auto max>
requires aui::convertible_to<decltype(min), UnderlyingType> && aui::convertible_to<decltype(max), UnderlyingType>
struct aui::ranged_number< UnderlyingType, min, max >

Clamps the possible values for a number to the specified range: [min;max].

Template Parameters
UnderlyingTypeany arithmetic type
minminimum possible value
maxmaximum possible value
Examples
/github/workspace/aui.json/src/AUI/Json/Conversion.h, and /github/workspace/aui.views/src/AUI/View/AView.h.

Public Member Functions

 ranged_number (UnderlyingType value)
 
 operator UnderlyingType () const
 

Static Public Attributes

static constexpr auto MIN = min
 
static constexpr auto MAX = max
 

#include <AUI/Traits/values.h>


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