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


== Synopsis


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

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

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

[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;xref:boost/urls/format_arg.adoc[format&lowbar;arg]&gt; args);
----

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

== Exceptions


|===
| Name | Thrown on

| `system&lowbar;error`
| `fmt` contains an invalid format string and    the result contains an invalid URL after    replacements are applied&period;


|===

== Parameters


|===
| Name | Description

| *fmt*
| The format URL string&period;


| *args*
| Arguments to be formatted&period;


|===



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