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


The type of variant used by the library

== Synopsis


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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class... Ts&gt;
using variant = xref:boost.adoc[boost]::variant2::variant&lt;Ts...&gt;;
----

== Description


[WARNING]
This alias is no longer supported and    should not be used in new code&period; Please use    `boost&colon;&colon;variant2&colon;&colon;variant` 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]#
