|
|
constexpr | ranged_numeric (ranged_numeric const &rhs) noexcept=default |
| |
|
constexpr | ranged_numeric (ranged_numeric &&rhs) noexcept=default |
| |
|
constexpr ranged_numeric & | operator= (ranged_numeric const &rhs) noexcept=default |
| |
|
constexpr ranged_numeric & | operator= (ranged_numeric &&rhs) noexcept=default |
| |
|
constexpr | operator value_type () noexcept |
| |
|
constexpr | ranged_numeric (signed long long rhs) noexcept |
| |
|
constexpr | ranged_numeric (unsigned long long rhs) noexcept |
| |
|
constexpr | ranged_numeric (signed long rhs) noexcept |
| |
|
constexpr | ranged_numeric (unsigned long rhs) noexcept |
| |
|
constexpr | ranged_numeric (signed int rhs) noexcept |
| |
|
constexpr | ranged_numeric (unsigned int rhs) noexcept |
| |
|
constexpr | ranged_numeric (signed short rhs) noexcept |
| |
|
constexpr | ranged_numeric (unsigned short rhs) noexcept |
| |
|
constexpr | ranged_numeric (signed char rhs) noexcept |
| |
|
constexpr | ranged_numeric (unsigned char rhs) noexcept |
| |
|
constexpr ranged_numeric & | operator++ () noexcept |
| |
|
constexpr ranged_numeric & | operator-- () noexcept |
| |
template<typename T, T A, T B = A>
class tt::ranged_numeric< T, A, B >
A ranged integer.
This is an integer value that must stay within its minimum and maximum value.
- Template Parameters
-
| A | When only one parameter is given one beyond the maximum value. When both parameters are given the minimum value. |
| B | One beyond the maximum value. |