[#BloombergLP-bslmf-MovableRefUtil-AddMovableReference]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::xref:BloombergLP/bslmf/MovableRefUtil.adoc[MovableRefUtil]::AddMovableReference
:relfileprefix: ../../../
:mrdocs:

Metafunction that adds a movable reference to `t&lowbar;TYPE`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct AddMovableReference
    : xref:BloombergLP/bslmf/MovableRefUtil_AddMovableReference.adoc[MovableRefUtil&lowbar;AddMovableReference&lt;t&lowbar;TYPE&gt;]
----

== Description

This `struct` template provides a metafunction that defines a nested `type` typedef that, if `t&lowbar;TYPE` is not a reference type, is `MovableRef&lt;t&lowbar;TYPE&gt;`&period; Otherwise, if `t&lowbar;TYPE` is a specialization of `MovableRef`, `type` is the same as `t&lowbar;TYPE`&period; Otherwise, `type` is `t&lowbar;TYPE&amp;`&period; This transformation reflects the semantics of _reference collapsing_ in section &lsqb;dec&period;ref&rsqb;of the standard&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslmf/MovableRefUtil_AddMovableReference.adoc[MovableRefUtil&lowbar;AddMovableReference&lt;t&lowbar;TYPE&gt;]`
| forward declaration
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/add_rvalue_reference-00/type.adoc[`type`] 
| This `typedef` is an alias to the return type of this meta&hyphen;function&period;
|===



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