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.