Exact literals, parsed at compile time: 100.25_px, 0.01_qty (up to 8 decimals), 5_bps, 0.25_bps (up to 4 decimals). More decimals, or a value out of range, is a compile error. An inline namespace, so using namespace fastmm; brings them in too (like std::literals).
More...
Exact literals, parsed at compile time: 100.25_px, 0.01_qty (up to 8 decimals), 5_bps, 0.25_bps (up to 4 decimals). More decimals, or a value out of range, is a compile error. An inline namespace, so using namespace fastmm; brings them in too (like std::literals).
◆ operator""_px() [1/2]
| constexpr Price fastmm::literals::operator""_px |
( |
unsigned long long |
v | ) |
|
|
constexprnoexcept |
100_px == Price::from_int(100).
◆ operator""_qty() [1/2]
| constexpr Qty fastmm::literals::operator""_qty |
( |
unsigned long long |
v | ) |
|
|
constexprnoexcept |
◆ operator""_px() [2/2]
template<char... Cs>
| constexpr Price fastmm::literals::operator""_px |
( |
| ) |
|
|
constexprnoexcept |
< checked by the static_assert above
◆ operator""_qty() [2/2]
template<char... Cs>
| constexpr Qty fastmm::literals::operator""_qty |
( |
| ) |
|
|
constexprnoexcept |
< checked by the static_assert above
◆ operator""_bps()
template<char... Cs>
| constexpr Ratio fastmm::literals::operator""_bps |
( |
| ) |
|
|
constexprnoexcept |
< checked by the static_assert above