eckit::literals namespace

Eckit literals provides user defined literals for IEC multi-byte units. To make these literals available to your code use using namespace eckit::literals Usage example:

using namespace eckit::literals;
const auto bufferSize = 3_MiB;

Functions

auto operator""_KiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Kibibyte.
auto operator""_MiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Mebibyte.
auto operator""_GiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Gibibyte.
auto operator""_TiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Tebibyte.
auto operator""_PiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Pebibyte.
auto operator""_EiB(unsigned long long int x) -> std::uint64_t constexpr
Literal to express Exbibyte.
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.