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

Format arguments into a URL

== Synopses

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

Format arguments into a URL


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url.adoc[url]
xref:boost/urls/format-02.adoc[format](
    core::string&lowbar;view fmt,
    std::initializer&lowbar;list&lt;format&lowbar;arg&gt; args);
----

[.small]#xref:boost/urls/format-02.adoc[_» more&period;&period;&period;_]#

Format arguments into a URL


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::convertible&lowbar;to&lt;format&lowbar;arg&gt;&period;&period;&period; Args&gt;
xref:boost/urls/url.adoc[url]
xref:boost/urls/format-05.adoc[format](
    core::string&lowbar;view fmt,
    Args&&&period;&period;&period; args);
----

[.small]#xref:boost/urls/format-05.adoc[_» more&period;&period;&period;_]#

== Exceptions

[cols="1,4"]
|===
| Name| Thrown on
| `system&lowbar;error`
| `fmt` contains an invalid format string and the result contains an invalid URL after replacements are applied&period;
|===

== Return Value

A URL holding the formatted result&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fmt*
| The format URL string&period;
| *args*
| Arguments to be formatted&period;
|===

== See Also

xref:boost/urls/format_to-01.adoc[`format&lowbar;to`]&period;

xref:boost/urls/format_to-01.adoc[`format&lowbar;to`], xref:boost/urls/arg.adoc[`arg`]&period;


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