:relfileprefix: ../../../../
[#boost-urls-grammar-recycled_ptr-acquire]

= xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::xref:boost/urls/grammar/recycled_ptr.adoc[pass:[recycled_ptr]]::acquire


Return the referenced object


== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L484[boost/url/grammar/recycled.hpp,window=blank_]>`

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

== Description


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

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








