[#mp_units-implicitly_convertible] = xref:mp_units.adoc[mp_units]::implicitly_convertible :relfileprefix: ../ :mrdocs: Checks whether a quantity of quantity spec `From` can be implicitly converted to quantity spec `To` == Synopsis Declared in `<mp‐units/framework/quantity_spec_concepts.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/QuantitySpec.adoc[QuantitySpec] From, xref:mp_units/QuantitySpec.adoc[QuantitySpec] To> [[nodiscard]] consteval bool implicitly_convertible( From from, To to); ---- == Return Value `true` if `from` is implicitly convertible to `to` [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Template Parameters [cols="1,4"] |=== | Name| Description | *From* | source quantity specification type | *To* | target quantity specification type |=== == Parameters [cols="1,4"] |=== | Name| Description | *from* | source quantity specification value | *to* | target quantity specification value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#