Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Bounded< Rep, Min, Max > Struct Template Reference
Restrict values of an integer type to a defined range. More...
#include <Bounded.h>
Public Member Functions | |
Bounded (Rep v) | |
Construct a bounded integer. | |
Rep | value () const |
Access the inner value. | |
Static Public Member Functions | |
static Rep | min () |
The left-bound value. | |
static Rep | max () |
The right-bound value. | |
Static Public Attributes | |
static const Rep | MIN = Min |
The left-bound value. | |
static const Rep | MAX = Max |
The right-bound value. |
Detailed Description
template<typename Rep, Rep Min, Rep Max>
struct ble::Bounded< Rep, Min, Max >
Restrict values of an integer type to a defined range.
The range is a closed interval that includes its left-bound (Min) and right-bound value (Max).
- Template Parameters:
-
Rep The C++ integer type used to represent the values. Min Minimum value allowed. Max Maximum value allowed.
Definition at line 35 of file Bounded.h.
Constructor & Destructor Documentation
Bounded | ( | Rep | v ) |
Member Function Documentation
static Rep max | ( | ) | [static] |
static Rep min | ( | ) | [static] |
Rep value | ( | ) | const |
Field Documentation
Generated on Tue Jul 12 2022 13:55:39 by
