112 constexpr Size() noexcept: m_value(0) {}
119 template<Type::Integral T>
120 constexpr Size(T value)
noexcept: m_value(FromIntegral(value)) {}
126 constexpr Size(
const Size& other)
noexcept =
default;
137 constexpr ~Size() noexcept = default;
144 constexpr
Size& operator=(const
Size& other) noexcept = default;
151 constexpr
Size& operator=(
Size&& other) noexcept = default;
159 template<
Type::Integral T>
160 constexpr
Size& operator=(T value) noexcept {
161 m_value = FromIntegral(value);
169 constexpr operator std::size_t() const noexcept {
170 constexpr auto max =
static_cast<std::uint64_t
>(std::numeric_limits<std::size_t>::max());
171 return static_cast<std::size_t
>(m_value > max ? max : m_value);
179 template<Type::Integral T>
181 constexpr explicit operator T()
const noexcept {
182 constexpr auto max =
static_cast<std::uint64_t
>(std::numeric_limits<T>::max());
183 return static_cast<T
>(m_value > max ? max : m_value);
203 return std::to_string(m_value);
213 return lhs.m_value == rhs.m_value;
220 template<Type::Integral T>
227 template<Type::Integral T>
237 return lhs.m_value <=> rhs.m_value;
244 template<Type::Integral T>
246 return lhs <=>
Size(rhs);
253 template<Type::Integral T>
255 return Size(lhs) <=> rhs;
263 *
this +=
Size(Raw{}, 1);
272 const Size old = *
this;
282 *
this -=
Size(Raw{}, 1);
291 const Size old = *
this;
303 return Size(Raw{}, Add(lhs.m_value, rhs.m_value));
313 return Size(Raw{}, Sub(lhs.m_value, rhs.m_value));
323 return Size(Raw{}, Mul(lhs.m_value, rhs.m_value));
333 return Size(Raw{}, Div(lhs.m_value, rhs.m_value));
343 return Size(Raw{}, Mod(lhs.m_value, rhs.m_value));
352 m_value = Add(m_value, other.m_value);
362 m_value = Sub(m_value, other.m_value);
372 m_value = Mul(m_value, other.m_value);
382 m_value = Div(m_value, other.m_value);
392 m_value = Mod(m_value, other.m_value);
400 template<Type::Integral T>
407 template<Type::Integral T>
414 template<Type::Integral T>
421 template<Type::Integral T>
428 template<Type::Integral T>
435 template<Type::Integral T>
442 template<Type::Integral T>
449 template<Type::Integral T>
456 template<Type::Integral T>
463 template<Type::Integral T>
472 template<Type::Integral T>
474 *
this = *
this + value;
484 template<Type::Integral T>
486 *
this = *
this - value;
496 template<Type::Integral T>
498 *
this = *
this * value;
508 template<Type::Integral T>
510 *
this = *
this / value;
520 template<Type::Integral T>
522 *
this = *
this % value;
527 std::uint64_t m_value;
533 explicit constexpr Raw() noexcept = default;
540 explicit constexpr
Size(Raw,
std::uint64_t value) noexcept: m_value(value) {}
548 template<Type::Integral T>
549 static constexpr std::uint64_t FromIntegral(T value)
noexcept {
550 if constexpr (Type::Signed<T>)
551 assert(value >= T{0});
552 return static_cast<std::uint64_t
>(value);
561 static constexpr std::uint64_t Add(std::uint64_t lhs, std::uint64_t rhs)
noexcept {
562 assert(lhs <= std::numeric_limits<std::uint64_t>::max() - rhs);
572 static constexpr std::uint64_t Sub(std::uint64_t lhs, std::uint64_t rhs)
noexcept {
583 static constexpr std::uint64_t Mul(std::uint64_t lhs, std::uint64_t rhs)
noexcept {
584 assert(rhs == 0 || lhs <= std::numeric_limits<std::uint64_t>::max() / rhs);
594 static constexpr std::uint64_t Div(std::uint64_t lhs, std::uint64_t rhs)
noexcept {
605 static constexpr std::uint64_t Mod(std::uint64_t lhs, std::uint64_t rhs)
noexcept {
617 template<Type::Integral T>
618 static constexpr Size MixAdd(std::uint64_t lhs, T rhs)
noexcept {
619 if constexpr (Type::Signed<T>) {
621 const auto mag =
static_cast<std::uint64_t
>(0) -
static_cast<std::uint64_t
>(rhs);
622 return Size(Raw{}, Sub(lhs, mag));
625 return Size(Raw{}, Add(lhs,
static_cast<std::uint64_t
>(rhs)));
635 template<Type::Integral T>
636 static constexpr Size MixSub(std::uint64_t lhs, T rhs)
noexcept {
637 if constexpr (Type::Signed<T>) {
639 const auto mag =
static_cast<std::uint64_t
>(0) -
static_cast<std::uint64_t
>(rhs);
640 return Size(Raw{}, Add(lhs, mag));
643 return Size(Raw{}, Sub(lhs,
static_cast<std::uint64_t
>(rhs)));
653 template<Type::Integral T>
654 static constexpr Size MixMul(std::uint64_t lhs, T rhs)
noexcept {
655 if constexpr (Type::Signed<T>)
657 return Size(Raw{}, Mul(lhs,
static_cast<std::uint64_t
>(rhs)));
668 template<Type::Integral T>
670 return lhs ==
Size(rhs);
680 template<Type::Integral T>
682 return Size(lhs) == rhs;
692 template<Type::Integral T>
694 return Size::MixAdd(lhs.m_value, rhs);
704 template<Type::Integral T>
706 return Size::MixAdd(rhs.m_value, lhs);
716 template<Type::Integral T>
718 return Size::MixSub(lhs.m_value, rhs);
728 template<Type::Integral T>
730 return Size(lhs) - rhs;
740 template<Type::Integral T>
742 return Size::MixMul(lhs.m_value, rhs);
752 template<Type::Integral T>
754 return Size::MixMul(rhs.m_value, lhs);
764 template<Type::Integral T>
766 return lhs /
Size(rhs);
776 template<Type::Integral T>
778 return Size(lhs) / rhs;
788 template<Type::Integral T>
790 return lhs %
Size(rhs);
800 template<Type::Integral T>
802 return Size(lhs) % rhs;
812 stream << static_cast<std::string>(size);
818 extern template STORMBYTE_PUBLIC Size& Size::operator=(
signed char)
noexcept;
819 extern template STORMBYTE_PUBLIC Size& Size::operator=(
unsigned char)
noexcept;
821 extern template STORMBYTE_PUBLIC Size& Size::operator=(
unsigned short)
noexcept;
823 extern template STORMBYTE_PUBLIC Size& Size::operator=(
unsigned int)
noexcept;
825 extern template STORMBYTE_PUBLIC Size& Size::operator=(
unsigned long)
noexcept;
827 extern template STORMBYTE_PUBLIC Size& Size::operator=(
unsigned long long)
noexcept;
834 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
signed char)
noexcept;
835 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
unsigned char)
noexcept;
837 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
unsigned short)
noexcept;
839 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
unsigned int)
noexcept;
841 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
unsigned long)
noexcept;
842 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
long long)
noexcept;
843 extern template STORMBYTE_PUBLIC Size& Size::operator+=(
unsigned long long)
noexcept;
850 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
signed char)
noexcept;
851 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
unsigned char)
noexcept;
853 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
unsigned short)
noexcept;
855 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
unsigned int)
noexcept;
857 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
unsigned long)
noexcept;
858 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
long long)
noexcept;
859 extern template STORMBYTE_PUBLIC Size& Size::operator-=(
unsigned long long)
noexcept;
866 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
signed char)
noexcept;
867 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
unsigned char)
noexcept;
869 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
unsigned short)
noexcept;
871 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
unsigned int)
noexcept;
873 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
unsigned long)
noexcept;
874 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
long long)
noexcept;
875 extern template STORMBYTE_PUBLIC Size& Size::operator*=(
unsigned long long)
noexcept;
882 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
signed char)
noexcept;
883 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
unsigned char)
noexcept;
885 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
unsigned short)
noexcept;
887 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
unsigned int)
noexcept;
889 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
unsigned long)
noexcept;
890 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
long long)
noexcept;
891 extern template STORMBYTE_PUBLIC Size& Size::operator/=(
unsigned long long)
noexcept;
898 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
signed char)
noexcept;
899 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
unsigned char)
noexcept;
901 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
unsigned short)
noexcept;
903 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
unsigned int)
noexcept;
905 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
unsigned long)
noexcept;
906 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
long long)
noexcept;
907 extern template STORMBYTE_PUBLIC Size& Size::operator%=(
unsigned long long)
noexcept;
914 extern template
STORMBYTE_PUBLIC Size::operator
signed char() const noexcept;
915 extern template
STORMBYTE_PUBLIC Size::operator
unsigned char() const noexcept;
917 extern template
STORMBYTE_PUBLIC Size::operator
unsigned short() const noexcept;
919 extern template
STORMBYTE_PUBLIC Size::operator
unsigned int() const noexcept;
928 extern template
STORMBYTE_PUBLIC bool operator==(Size,
signed char) noexcept;
929 extern template
STORMBYTE_PUBLIC bool operator==(Size,
unsigned char) noexcept;
931 extern template
STORMBYTE_PUBLIC bool operator==(Size,
unsigned short) noexcept;
933 extern template
STORMBYTE_PUBLIC bool operator==(Size,
unsigned int) noexcept;
935 extern template
STORMBYTE_PUBLIC bool operator==(Size,
unsigned long) noexcept;
937 extern template
STORMBYTE_PUBLIC bool operator==(Size,
unsigned long long) noexcept;
944 extern template
STORMBYTE_PUBLIC bool operator==(
signed char, Size) noexcept;
945 extern template
STORMBYTE_PUBLIC bool operator==(
unsigned char, Size) noexcept;
947 extern template
STORMBYTE_PUBLIC bool operator==(
unsigned short, Size) noexcept;
949 extern template
STORMBYTE_PUBLIC bool operator==(
unsigned int, Size) noexcept;
951 extern template
STORMBYTE_PUBLIC bool operator==(
unsigned long, Size) noexcept;
953 extern template
STORMBYTE_PUBLIC bool operator==(
unsigned long long, Size) noexcept;
960 extern template
STORMBYTE_PUBLIC Size operator+(Size,
signed char) noexcept;
961 extern template
STORMBYTE_PUBLIC Size operator+(Size,
unsigned char) noexcept;
963 extern template
STORMBYTE_PUBLIC Size operator+(Size,
unsigned short) noexcept;
965 extern template
STORMBYTE_PUBLIC Size operator+(Size,
unsigned int) noexcept;
967 extern template
STORMBYTE_PUBLIC Size operator+(Size,
unsigned long) noexcept;
969 extern template
STORMBYTE_PUBLIC Size operator+(Size,
unsigned long long) noexcept;
976 extern template
STORMBYTE_PUBLIC Size operator+(
signed char, Size) noexcept;
977 extern template
STORMBYTE_PUBLIC Size operator+(
unsigned char, Size) noexcept;
979 extern template
STORMBYTE_PUBLIC Size operator+(
unsigned short, Size) noexcept;
981 extern template
STORMBYTE_PUBLIC Size operator+(
unsigned int, Size) noexcept;
983 extern template
STORMBYTE_PUBLIC Size operator+(
unsigned long, Size) noexcept;
985 extern template
STORMBYTE_PUBLIC Size operator+(
unsigned long long, Size) noexcept;
992 extern template
STORMBYTE_PUBLIC Size operator-(Size,
signed char) noexcept;
993 extern template
STORMBYTE_PUBLIC Size operator-(Size,
unsigned char) noexcept;
995 extern template
STORMBYTE_PUBLIC Size operator-(Size,
unsigned short) noexcept;
997 extern template
STORMBYTE_PUBLIC Size operator-(Size,
unsigned int) noexcept;
999 extern template
STORMBYTE_PUBLIC Size operator-(Size,
unsigned long) noexcept;
1001 extern template
STORMBYTE_PUBLIC Size operator-(Size,
unsigned long long) noexcept;
1008 extern template
STORMBYTE_PUBLIC Size operator-(
signed char, Size) noexcept;
1009 extern template
STORMBYTE_PUBLIC Size operator-(
unsigned char, Size) noexcept;
1011 extern template
STORMBYTE_PUBLIC Size operator-(
unsigned short, Size) noexcept;
1013 extern template
STORMBYTE_PUBLIC Size operator-(
unsigned int, Size) noexcept;
1015 extern template
STORMBYTE_PUBLIC Size operator-(
unsigned long, Size) noexcept;
1017 extern template
STORMBYTE_PUBLIC Size operator-(
unsigned long long, Size) noexcept;
1024 extern template
STORMBYTE_PUBLIC Size operator*(Size,
signed char) noexcept;
1025 extern template
STORMBYTE_PUBLIC Size operator*(Size,
unsigned char) noexcept;
1027 extern template
STORMBYTE_PUBLIC Size operator*(Size,
unsigned short) noexcept;
1029 extern template
STORMBYTE_PUBLIC Size operator*(Size,
unsigned int) noexcept;
1031 extern template
STORMBYTE_PUBLIC Size operator*(Size,
unsigned long) noexcept;
1033 extern template
STORMBYTE_PUBLIC Size operator*(Size,
unsigned long long) noexcept;
1040 extern template
STORMBYTE_PUBLIC Size operator*(
signed char, Size) noexcept;
1041 extern template
STORMBYTE_PUBLIC Size operator*(
unsigned char, Size) noexcept;
1043 extern template
STORMBYTE_PUBLIC Size operator*(
unsigned short, Size) noexcept;
1045 extern template
STORMBYTE_PUBLIC Size operator*(
unsigned int, Size) noexcept;
1047 extern template
STORMBYTE_PUBLIC Size operator*(
unsigned long, Size) noexcept;
1049 extern template
STORMBYTE_PUBLIC Size operator*(
unsigned long long, Size) noexcept;
1056 extern template
STORMBYTE_PUBLIC Size operator/(Size,
signed char) noexcept;
1057 extern template
STORMBYTE_PUBLIC Size operator/(Size,
unsigned char) noexcept;
1059 extern template
STORMBYTE_PUBLIC Size operator/(Size,
unsigned short) noexcept;
1061 extern template
STORMBYTE_PUBLIC Size operator/(Size,
unsigned int) noexcept;
1063 extern template
STORMBYTE_PUBLIC Size operator/(Size,
unsigned long) noexcept;
1065 extern template
STORMBYTE_PUBLIC Size operator/(Size,
unsigned long long) noexcept;
1072 extern template
STORMBYTE_PUBLIC Size operator/(
signed char, Size) noexcept;
1073 extern template
STORMBYTE_PUBLIC Size operator/(
unsigned char, Size) noexcept;
1075 extern template
STORMBYTE_PUBLIC Size operator/(
unsigned short, Size) noexcept;
1077 extern template
STORMBYTE_PUBLIC Size operator/(
unsigned int, Size) noexcept;
1079 extern template
STORMBYTE_PUBLIC Size operator/(
unsigned long, Size) noexcept;
1081 extern template
STORMBYTE_PUBLIC Size operator/(
unsigned long long, Size) noexcept;
1088 extern template
STORMBYTE_PUBLIC Size operator%(Size,
signed char) noexcept;
1089 extern template
STORMBYTE_PUBLIC Size operator%(Size,
unsigned char) noexcept;
1091 extern template
STORMBYTE_PUBLIC Size operator%(Size,
unsigned short) noexcept;
1093 extern template
STORMBYTE_PUBLIC Size operator%(Size,
unsigned int) noexcept;
1095 extern template
STORMBYTE_PUBLIC Size operator%(Size,
unsigned long) noexcept;
1097 extern template
STORMBYTE_PUBLIC Size operator%(Size,
unsigned long long) noexcept;
1104 extern template
STORMBYTE_PUBLIC Size operator%(
signed char, Size) noexcept;
1105 extern template
STORMBYTE_PUBLIC Size operator%(
unsigned char, Size) noexcept;
1107 extern template
STORMBYTE_PUBLIC Size operator%(
unsigned short, Size) noexcept;
1109 extern template
STORMBYTE_PUBLIC Size operator%(
unsigned int, Size) noexcept;
1111 extern template
STORMBYTE_PUBLIC Size operator%(
unsigned long, Size) noexcept;
1113 extern template
STORMBYTE_PUBLIC Size operator%(
unsigned long long, Size) noexcept;
1129 const auto widened =
static_cast<std::uint64_t
>(
static_cast<std::size_t
>(value));
1130 return HashBytes(std::as_bytes(std::span<const std::uint64_t>(&widened, 1)));
1140class std::numeric_limits<StormByte::Size> {
1149 static constexpr std::float_denorm_style
has_denorm = std::denorm_absent;
1151 static constexpr std::float_round_style
round_style = std::round_toward_zero;
1187struct std::hash<StormByte::Size> {
Count of octets (uint64_t storage).
Definition byte_size.hxx:105
Owned UTF-8 text.
Definition string.hxx:113
Wide counterpart of String.
Definition wstring.hxx:104
Count of abstract units (uint64_t storage).
Definition size.hxx:107
constexpr Size & operator/=(Size other) noexcept
Divide by other.
Definition size.hxx:381
friend constexpr Size operator-(Size lhs, Size rhs) noexcept
Difference.
Definition size.hxx:312
friend constexpr Size operator*(Size lhs, Size rhs) noexcept
Product.
Definition size.hxx:322
constexpr Size operator--(int) noexcept
Postfix decrement.
Definition size.hxx:290
constexpr Size & operator-=(T value) noexcept
Subtract an integer.
Definition size.hxx:485
operator Safe::WString() const noexcept
Decimal wide text owned by Base.
constexpr Size & operator%=(T value) noexcept
Remainder with an integer.
Definition size.hxx:521
constexpr Size & operator/=(T value) noexcept
Divide by an integer.
Definition size.hxx:509
constexpr Size & operator+=(T value) noexcept
Add an integer.
Definition size.hxx:473
constexpr Size operator++(int) noexcept
Postfix increment.
Definition size.hxx:271
constexpr Size(T value) noexcept
From an integer count.
Definition size.hxx:120
constexpr Size & operator*=(T value) noexcept
Multiply by an integer.
Definition size.hxx:497
friend STORMBYTE_FORCE_INLINE constexpr std::strong_ordering operator<=>(Size lhs, Size rhs) noexcept
Numeric order.
Definition size.hxx:236
constexpr Size(Size &&other) noexcept=default
Move constructor.
constexpr Size & operator++() noexcept
Prefix increment.
Definition size.hxx:262
friend constexpr Size operator/(Size lhs, Size rhs) noexcept
Quotient.
Definition size.hxx:332
constexpr ~Size() noexcept=default
Destructor.
constexpr Size & operator+=(Size other) noexcept
Add other.
Definition size.hxx:351
constexpr Size & operator%=(Size other) noexcept
Remainder with other.
Definition size.hxx:391
constexpr Size(const Size &other) noexcept=default
Copy constructor.
constexpr Size() noexcept
Zero.
Definition size.hxx:112
constexpr Size & operator--() noexcept
Prefix decrement.
Definition size.hxx:281
constexpr Size & operator-=(Size other) noexcept
Subtract other.
Definition size.hxx:361
friend STORMBYTE_FORCE_INLINE constexpr std::strong_ordering operator<=>(T lhs, Size rhs) noexcept
Mixed order.
Definition size.hxx:254
friend constexpr Size operator%(Size lhs, Size rhs) noexcept
Remainder.
Definition size.hxx:342
friend constexpr bool operator==(Size lhs, Size rhs) noexcept
Numeric equality.
Definition size.hxx:212
friend STORMBYTE_FORCE_INLINE constexpr std::strong_ordering operator<=>(Size lhs, T rhs) noexcept
Mixed order.
Definition size.hxx:245
constexpr Size & operator*=(Size other) noexcept
Multiply by other.
Definition size.hxx:371
friend constexpr Size operator+(Size lhs, Size rhs) noexcept
Sum.
Definition size.hxx:302
static constexpr int max_digits10
Definition size.hxx:1157
static constexpr int min_exponent10
Definition size.hxx:1160
static constexpr bool is_specialized
Definition size.hxx:1142
static constexpr int max_exponent
Definition size.hxx:1161
static constexpr bool traps
Definition size.hxx:1163
static constexpr int max_exponent10
Definition size.hxx:1162
static constexpr StormByte::Size epsilon() noexcept
Not meaningful for an integer.
Definition size.hxx:1173
static constexpr StormByte::Size round_error() noexcept
Not meaningful for an integer.
Definition size.hxx:1175
static constexpr std::float_denorm_style has_denorm
Definition size.hxx:1149
static constexpr StormByte::Size min() noexcept
Zero.
Definition size.hxx:1167
static constexpr bool is_iec559
Definition size.hxx:1152
static constexpr StormByte::Size denorm_min() noexcept
Not meaningful.
Definition size.hxx:1183
static constexpr int radix
Definition size.hxx:1158
static constexpr bool has_quiet_NaN
Definition size.hxx:1147
static constexpr StormByte::Size quiet_NaN() noexcept
Not meaningful.
Definition size.hxx:1179
static constexpr bool has_infinity
Definition size.hxx:1146
static constexpr bool is_bounded
Definition size.hxx:1153
static constexpr int digits10
Definition size.hxx:1156
static constexpr StormByte::Size signaling_NaN() noexcept
Not meaningful.
Definition size.hxx:1181
static constexpr bool is_integer
Definition size.hxx:1144
static constexpr bool is_signed
Definition size.hxx:1143
static constexpr int digits
Definition size.hxx:1155
static constexpr StormByte::Size infinity() noexcept
Not meaningful.
Definition size.hxx:1177
static constexpr int min_exponent
Definition size.hxx:1159
static constexpr bool has_denorm_loss
Definition size.hxx:1150
static constexpr bool is_modulo
Definition size.hxx:1154
static constexpr bool is_exact
Definition size.hxx:1145
static constexpr std::float_round_style round_style
Definition size.hxx:1151
static constexpr StormByte::Size max() noexcept
2^64 - 1.
Definition size.hxx:1171
static constexpr StormByte::Size lowest() noexcept
Zero.
Definition size.hxx:1169
static constexpr bool has_signaling_NaN
Definition size.hxx:1148
static constexpr bool tinyness_before
Definition size.hxx:1164
Same type after stripping cv and references from both sides.
Definition relations.hxx:139
Owned values that cross a DLL without the caller's CRT.
STORMBYTE_FORCE_INLINE std::size_t HashBytes(std::span< const std::byte > bytes) noexcept
Mix a byte range with FNV-1a.
Definition hash.hxx:66
Root namespace of the StormByte suite.
constexpr bool operator==(ByteSize lhs, T rhs) noexcept
Mixed equality.
Definition byte_size.hxx:748
constexpr ByteSize operator%(ByteSize lhs, T rhs) noexcept
Mixed remainder.
Definition byte_size.hxx:856
std::ostream & operator<<(std::ostream &stream, ByteSize size)
Writes the IEC human-readable length.
Definition byte_size.hxx:866
constexpr ByteSize operator+(ByteSize lhs, T rhs) noexcept
Mixed sum.
Definition byte_size.hxx:772
constexpr ByteSize operator*(ByteSize lhs, T rhs) noexcept
Mixed product.
Definition byte_size.hxx:820
constexpr ByteSize operator/(ByteSize lhs, T rhs) noexcept
Mixed quotient.
Definition byte_size.hxx:844
constexpr ByteSize operator-(ByteSize lhs, T rhs) noexcept
Mixed difference.
Definition byte_size.hxx:796
Octet count. Defined in byte_size.hxx. Forwarded so Type::Numeral can name it.
STORMBYTE_FORCE_INLINE std::size_t operator()(const StormByte::Size &value) const noexcept
Hash value.
Definition size.hxx:1128
Cross-module hash.
Definition hash.hxx:95
std::size_t operator()(const StormByte::Size &value) const noexcept
Hash value.
Definition size.hxx:1193
#define STORMBYTE_PUBLIC
Definition visibility.h:52