Literal constants for data size quantities. More...
Functions | |
constexpr byte | operator""_B (long double v) |
Literal second value. More... | |
constexpr byte | operator""_B (unsigned long long int v) |
constexpr kibibyte | operator""_kiB (long double v) |
Literal kibibyte value. More... | |
constexpr kibibyte | operator""_kiB (unsigned long long int v) |
constexpr mebibyte | operator""_MiB (long double v) |
Literal mebibyte value. More... | |
constexpr mebibyte | operator""_MiB (unsigned long long int v) |
constexpr gibibyte | operator""_GiB (long double v) |
Literal gibibyte value. More... | |
constexpr gibibyte | operator""_GiB (unsigned long long int v) |
constexpr tebibyte | operator""_TiB (long double v) |
Literal tebibyte value. More... | |
constexpr tebibyte | operator""_TiB (unsigned long long int v) |
constexpr pebibyte | operator""_PiB (long double v) |
Literal pebibyte value. More... | |
constexpr pebibyte | operator""_PiB (unsigned long long int v) |
constexpr exbibyte | operator""_EiB (long double v) |
Literal exbibyte value. More... | |
constexpr exbibyte | operator""_EiB (unsigned long long int v) |
Literal constants for data size quantities.
These functions allow a simplified syntax for specifying a data size quantity. In order to use these, their namespace must be used:
constexpr byte util::quantities::datasize_literals::operator""_B | ( | long double | v | ) |
Literal second value.
Definition at line 228 of file datasize.h.
constexpr byte util::quantities::datasize_literals::operator""_B | ( | unsigned long long int | v | ) |
Definition at line 230 of file datasize.h.
constexpr exbibyte util::quantities::datasize_literals::operator""_EiB | ( | long double | v | ) |
Literal exbibyte value.
Definition at line 276 of file datasize.h.
constexpr exbibyte util::quantities::datasize_literals::operator""_EiB | ( | unsigned long long int | v | ) |
Definition at line 278 of file datasize.h.
constexpr gibibyte util::quantities::datasize_literals::operator""_GiB | ( | long double | v | ) |
Literal gibibyte value.
Definition at line 252 of file datasize.h.
constexpr gibibyte util::quantities::datasize_literals::operator""_GiB | ( | unsigned long long int | v | ) |
Definition at line 254 of file datasize.h.
constexpr kibibyte util::quantities::datasize_literals::operator""_kiB | ( | long double | v | ) |
Literal kibibyte value.
Definition at line 236 of file datasize.h.
constexpr kibibyte util::quantities::datasize_literals::operator""_kiB | ( | unsigned long long int | v | ) |
Definition at line 238 of file datasize.h.
constexpr mebibyte util::quantities::datasize_literals::operator""_MiB | ( | long double | v | ) |
Literal mebibyte value.
Definition at line 244 of file datasize.h.
constexpr mebibyte util::quantities::datasize_literals::operator""_MiB | ( | unsigned long long int | v | ) |
Definition at line 246 of file datasize.h.
constexpr pebibyte util::quantities::datasize_literals::operator""_PiB | ( | long double | v | ) |
Literal pebibyte value.
Definition at line 268 of file datasize.h.
constexpr pebibyte util::quantities::datasize_literals::operator""_PiB | ( | unsigned long long int | v | ) |
Definition at line 270 of file datasize.h.
constexpr tebibyte util::quantities::datasize_literals::operator""_TiB | ( | long double | v | ) |
Literal tebibyte value.
Definition at line 260 of file datasize.h.
constexpr tebibyte util::quantities::datasize_literals::operator""_TiB | ( | unsigned long long int | v | ) |
Definition at line 262 of file datasize.h.