[#BloombergLP-bslmf-HasPointerSemantics-064]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::HasPointerSemantics
:relfileprefix: ../../
:mrdocs:

Metafunction indicating whether the (template parameter) `t&lowbar;TYPE` has pointer&hyphen;like semantics&period;

== Synopsis

Declared in `&lt;bslmf&lowbar;haspointersemantics&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct HasPointerSemantics
    : xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;bool, bsl&colon;&colon;is&lowbar;pointer&lt;t&lowbar;TYPE&gt;&colon;&colon;value &verbar;&verbar; DetectNestedTrait&lt;t&lowbar;TYPE, HasPointerSemantics&gt;&colon;&colon;value&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;bool, bsl&colon;&colon;is&lowbar;pointer&lt;t&lowbar;TYPE&gt;&colon;&colon;value &verbar;&verbar; DetectNestedTrait&lt;t&lowbar;TYPE, HasPointerSemantics&gt;&colon;&colon;value&gt;]`
| Metafunction representing a compile&hyphen;time constant of the specified (template parameter) `t&lowbar;TYPE` with the specified (template parameter) `t&lowbar;VALUE`&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/integral_constant-02/type.adoc[`type`] 
| Alias for this `integral&lowbar;constant` specialization&period;
| xref:bsl/integral_constant-02/value_type.adoc[`value&lowbar;type`] 
| 
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/integral_constant-02/operator_call.adoc[`operator()`] 
| Return a copy of the template argument `t&lowbar;VALUE`&period;
| xref:bsl/integral_constant-02/2conversion.adoc[`operator value&lowbar;type`] 
| 
|===


== Static Data Members

[cols="1"]
|===
| Name
| xref:bsl/integral_constant-02/value.adoc[`value`] 
|===


== Specializations

[cols="1"]
|===
| Name
| xref:BloombergLP/bslmf/HasPointerSemantics-05.adoc[`HasPointerSemantics&lt;bslma::ManagedPtr&lt;TARGET&lowbar;TYPE&gt;&gt;`] 
| xref:BloombergLP/bslmf/HasPointerSemantics-06c.adoc[`HasPointerSemantics&lt;std::auto&lowbar;ptr&lt;t&lowbar;POINTED&lowbar;TO&lowbar;TYPE&gt;&gt;`] 
| xref:BloombergLP/bslmf/HasPointerSemantics-08.adoc[`HasPointerSemantics&lt;bsl::shared&lowbar;ptr&lt;ELEMENT&lowbar;TYPE&gt;&gt;`] 
| xref:BloombergLP/bslmf/HasPointerSemantics-03.adoc[`HasPointerSemantics&lt;std::shared&lowbar;ptr&lt;t&lowbar;POINTED&lowbar;TO&lowbar;TYPE&gt;&gt;`] 
| xref:BloombergLP/bslmf/HasPointerSemantics-0c.adoc[`HasPointerSemantics&lt;std::unique&lowbar;ptr&lt;t&lowbar;POINTED&lowbar;TO&lowbar;TYPE&gt;&gt;`] 
|===



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