[#BloombergLP-bslstl-SharedPtr_IsPointerConvertible]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::SharedPtr&lowbar;IsPointerConvertible
:relfileprefix: ../../
:mrdocs:

Forward declaration of component&hyphen;private type trait to indicate whether a pointer to a `SOURCE&lowbar;TYPE` can be converted to a pointer to a `DEST&lowbar;TYPE`&period; &lsqb;util&period;smartptr&period;shared&period;const&rsqb;&sol;8 says &quot;either DEST&lowbar;TYPE is U&lsqb;N&rsqb;and SOURCE&lowbar;TYPE(_)&lsqb;&rsqb;N&rsqb;is convertible to DEST&lowbar;TYPE_, or DEST&lowbar;TYPE is U&lsqb;&rsqb;and SOURCE&lowbar;TYPE(_)&lsqb;&rsqb;&rsqb;is convertible to DEST&lowbar;TYPE_&quot;&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class SOURCE&lowbar;TYPE,
    class DEST&lowbar;TYPE&gt;
struct SharedPtr&lowbar;IsPointerConvertible
    : &sol;&ast; implementation-defined &ast;&sol;::type
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `&sol;&ast; implementation-defined &ast;&sol;::type`
| 
|===


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