Skip to main content

integer_literal Struct

The result of parsing the characters of an integer literal. More...

Declaration​

struct micro_os_plus::micro_test_plus::detail::math::integer_literal { ... }

Included Headers​

#include <deprecated.h>

Public Member Attributes Index​

boolis_integer

Whether the characters form an integer literal. More...

boolis_too_large

Whether the value exceeds unsigned long long. More...

unsigned long longvalue

The value of the literal. More...

Description​

The result of parsing the characters of an integer literal.

Returned by parse_integer_literal(); the checks of integer_magnitude() are based on it.

Definition at line 257 of file deprecated.h.

Public Member Attributes​

is_integer​

bool micro_os_plus::micro_test_plus::detail::math::integer_literal::is_integer

Whether the characters form an integer literal.

False for the floating-point literals (with a decimal point or an exponent), which the literal operator templates also receive.

Definition at line 274 of file deprecated.h.

Referenced by micro_os_plus::micro_test_plus::detail::math::integer_magnitude.

is_too_large​

bool micro_os_plus::micro_test_plus::detail::math::integer_literal::is_too_large

Whether the value exceeds unsigned long long.

Detected while the digits are accumulated.

Definition at line 282 of file deprecated.h.

Referenced by micro_os_plus::micro_test_plus::detail::math::integer_magnitude.

value​

unsigned long long micro_os_plus::micro_test_plus::detail::math::integer_literal::value

The value of the literal.

Valid only if is_integer is true and is_too_large is false.

Definition at line 265 of file deprecated.h.

265 unsigned long long value;

Referenced by micro_os_plus::micro_test_plus::detail::math::integer_magnitude.


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


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.