muu/size_t_literals.h file

Contains the definitions of a number of literal operators for std::size_t.

Namespaces

namespace muu
The root namespace for all muu functions and types.
namespace muu::literals inline
Literal operators.

Functions

auto operator""_b(unsigned long long b) -> size_t consteval noexcept
Creates a size_t for a given number of bytes.
auto operator""_gb(unsigned long long gb) -> size_t consteval noexcept
Creates a size_t for a given number of gigabytes.
auto operator""_kb(unsigned long long kb) -> size_t consteval noexcept
Creates a size_t for a given number of kilobytes.
auto operator""_mb(unsigned long long mb) -> size_t consteval noexcept
Creates a size_t for a given number of megabytes.
auto operator""_sz(unsigned long long n) -> size_t consteval noexcept
Creates a size_t.