[#mp_units-is_value_preserving] = xref:mp_units.adoc[mp_units]::is_value_preserving :relfileprefix: ../ :mrdocs: Specifies if a specific conversion between two types is representable without data loss == Synopsis Declared in `<mp‐units/framework/customization_points.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("2.6.0: Use `mp_units::implicitly_scalable` instead")]] template< typename From, typename To> constexpr bool is_value_preserving = treat_as_floating_point<To> || !treat_as_floating_point<From>; ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: 2.6.0: Use `mp_units::implicitly_scalable` instead. Use of this entity is allowed but discouraged. ==== == Template Parameters [cols="1,4"] |=== | Name| Description | *From* | a source representation type | *To* | a destination representation type |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#