[#boost-urls-grammar-recycled_ptr-acquire]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/recycled_ptr.adoc[recycled&lowbar;ptr]::acquire
:relfileprefix: ../../../../
:mrdocs:

Return the referenced object

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L499[boost&sol;url&sol;grammar&sol;recycled&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
acquire();
----

== Description

If this references an object, it is returned&period; Otherwise, exclusive ownership of a new object of type `T` is acquired and returned&period;

== Postconditions

[,cpp]
----
not this->empty()
----
== Return Value

A reference to the object


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