[#mp_units-silent_cast]
= xref:mp_units.adoc[mp&lowbar;units]::silent&lowbar;cast
:relfileprefix: ../
:mrdocs:

Intentionally silent narrowing cast with compiler float&hyphen;conversion diagnostics suppressed&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;scaling&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename To,
    typename From&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
To
silent&lowbar;cast(From value) noexcept;
----

== Template Parameters

[cols="1,4"]
|===
|Name|Description

| *To*
| target type
| *From*
| source type (deduced)
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
