[#BloombergLP-bslstl-Function_IsReferenceCompatible-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Function_IsReferenceCompatible-0c.adoc[Function&lowbar;IsReferenceCompatible]&lt;FROM&lowbar;TYPE, TO&lowbar;TYPE const&gt;
:relfileprefix: ../../
:mrdocs:

Partial specialization of `Function&lowbar;IsReferenceCompatible` for const `TO&lowbar;TYPE`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;function&lowbar;isreferencecompatible&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FROM&lowbar;TYPE,
    class TO&lowbar;TYPE&gt;
struct xref:BloombergLP/bslstl/Function_IsReferenceCompatible-0c.adoc[Function&lowbar;IsReferenceCompatible]&lt;FROM&lowbar;TYPE, TO&lowbar;TYPE const&gt;
    : xref:BloombergLP/bslstl/Function_IsReferenceCompatible-0c.adoc[Function&lowbar;IsReferenceCompatible&lt;bsl::remove&lowbar;const&lt;FROM&lowbar;TYPE&gt;::type, TO&lowbar;TYPE&gt;]
----

== Description

Partial specialization of `Function&lowbar;IsReferenceCompatible` for `TO&lowbar;TYPE` being const&period; The evaluation is forwarded to other specializations after stripping the const qualifiers&period; Note that if `FROM&lowbar;TYPE` is const and `TO&lowbar;TYPE` is mutable, this partial specialization will not be selected and the resulting evaluation will yield `false&lowbar;type`, reflecting the fact that a reference to const type cannot be substituted with a reference to mutable type&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslstl/Function_IsReferenceCompatible-0c.adoc[Function&lowbar;IsReferenceCompatible&lt;bsl::remove&lowbar;const&lt;FROM&lowbar;TYPE&gt;::type, TO&lowbar;TYPE&gt;]`
| Metafunction that is `true&lowbar;type` if a reference to `FROM&lowbar;TYPE` can substitute for a reference to `TO&lowbar;TYPE`&period;
|===


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