[#boost-urls-optional]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::optional
:relfileprefix: ../../
:mrdocs:

The type of optional used by the library

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
using optional &lsqb;&lsqb;deprecated(&quot;Use boost&colon;&colon;optional&lt;T&gt; instead&quot;)&rsqb;&rsqb; = boost::optional&lt;T&gt;;
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Use boost&colon;&colon;optional&lt;T&gt; instead. Use of this entity is allowed but discouraged.
====
== Description

[WARNING]
====
This alias is no longer supported and should not be used in new code&period; Please use `boost&colon;&colon;optional` instead&period;

====

This alias is included for backwards compatibility with earlier versions of the library&period;

However, it will be removed in future releases, and using it in new code is not recommended&period;

Please use the updated version instead to ensure compatibility with future versions of the library&period;


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