struct as_decimal_size
Declaration
struct as_decimal_size { /* full declaration omitted */ };
Description
Wrap a byte count in this to auto-format it as KB / MB / etc.
Member Variables
- double bytes
Member Function Overview
- template <typename Number, std::enable_if_t<std::is_arithmetic_v<Number>, int> = 0>
as_decimal_size(Number bytes)
Member Functions
¶template <
typename Number,
std::enable_if_t<std::is_arithmetic_v<Number>,
int> = 0>
as_decimal_size(Number bytes)
template <
typename Number,
std::enable_if_t<std::is_arithmetic_v<Number>,
int> = 0>
as_decimal_size(Number bytes)
Template Parameters
- Number
- std::enable_if_t<std::is_arithmetic_v<Number>, int> = 0
Parameters
- Number bytes