Skip to content

mp_units::space_before_unit_symbol

Whether a space separates a number from the symbol of the unit U in text output

Synopsis

Declared in <mp-units/framework/unit_text.h>

[[deprecated("2.6.0: Pass `no_space_before_unit_symbol` to `named_unit` instead")]]
template<Unit auto U>
constexpr bool space_before_unit_symbol = detail::space_before_symbol(U);

Warning

Deprecated: 2.6.0: Pass `no_space_before_unit_symbol` to `named_unit` instead. Use of this entity is allowed but discouraged.

Description

It is false for a unit defined with no_space_before_unit_symbol and for one. A specialization of it still takes effect, but a new unit passes the tag instead.

Template Parameters

NameDescription
Uthe unit