|
value-preserving-literals 0.0.1
value-preserving literals for C++
|
Classes | |
| class | bad_value_preserving_cast |
| Exception thrown when conversion to arithmetic type would change value. More... | |
| struct | constinteger |
| Untyped integer literal type. More... | |
| struct | constreal |
| Untyped real literal type. More... | |
Functions | |
| consteval constinteger | operator""_val (unsigned long long __x) noexcept |
| User-defined literal for untyped constants. | |
| consteval constinteger | val (unsigned_integral auto __x) noexcept |
| Create untyped constant from typed value / constant expression. | |
| consteval constinteger | val (signed_integral auto __x) noexcept |
| Create untyped constant from typed value / constant expression. | |
| consteval constreal | operator""_val (long double __x) noexcept |
| User-defined literal for untyped constants. | |
| consteval constreal | val (long double __x) noexcept |
| Create untyped constant from typed value / constant expression. | |
|
constevalnoexcept |
User-defined literal for untyped constants.
Creates a constinteger from a literal interpreted as unsigned long long.
| __x | The literal value |
|
constevalnoexcept |
Create untyped constant from typed value / constant expression.
| __x | Unsigned integral value |
|
constevalnoexcept |
Create untyped constant from typed value / constant expression.
| __x | Signed integral value |
|
constevalnoexcept |
User-defined literal for untyped constants.
Creates a constreal from a literal interpreted as long double.
| __x | The literal value |
|
constevalnoexcept |
Create untyped constant from typed value / constant expression.
| __x | Floating-point value |