5
Quantities and units library
[quantities]
5.4
Reference
[qty.ref]
5.4.4
Unit
[qty.unit]
5.4.4.3
Traits
[qty.unit.traits]
🔗
template
<
Unit
auto
U
>
constexpr
bool
space_before_unit_symbol
=
true
;
1
#
The formatting functions (
[qty.
unit.
sym.
fmt]
) use
space_
before_
unit_
symbol
to determine whether there is a space between the numerical value and the unit symbol
.
2
#
Remarks
: Pursuant to
N4971, [namespace.std]
(
[spec.
ext]
), users may specialize
space_
before_
unit_
symbol
for cv-unqualified program-defined types
.
Such specializations shall be usable in constant expressions (
N4971, [expr.const]
) and have type
const
bool
.