Skip to main content

integral_min_magnitude Struct Template

Struct template representing the absolute value of the minimum of a signed integral type, as written in a literal. More...

Declaration​

template <class T>
struct micro_os_plus::micro_test_plus::detail::integral_min_magnitude<T> { ... }

Included Headers​

Public Operators Index​

template <class T>
constexpr autooperator- () const noexcept

Unary minus operator. More...

Description​

Struct template representing the absolute value of the minimum of a signed integral type, as written in a literal.

Template Parameters
T

The signed integral type of the literal.

The absolute value of the minimum of a signed type (e.g. 128 for int8_t) does not fit in the type, but the literal must be accepted to write the minimum with the unary minus (e.g. -128_i8). The literal operators return this type for such a literal; its only operation is the unary minus, so any other use of the literal fails to compile.

Definition at line 482 of file deprecated.h.

Public Operators​

operator-()​

template <class T>
auto micro_os_plus::micro_test_plus::detail::integral_min_magnitude< T >::operator- ()
nodiscard constexpr noexcept

Unary minus operator.

The only operation of the type, the one that makes the literal valid.

Returns

An integral_constant with the minimum value of T.

Returns the minimum of T, which is the negation of the absolute value represented by this type.

Declaration at line 494 of file deprecated.h, definition at line 565 of file deprecated-inlines.h.


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


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.