boost::urls::format

Format arguments into a URL

Synopses

Declared in <boost/url/format.hpp>

Format arguments into a URL

url
format(
    core::string_view fmt,
    std::initializer_list<format_arg> args);
» more...

Format arguments into a URL

template<std::convertible_to<format_arg>... Args>
url
format(
    core::string_view fmt,
    Args&&... args);
» more...

Exceptions

NameThrown on
system_errorfmt contains an invalid format string and the result contains an invalid URL after replacements are applied.

Return Value

A URL holding the formatted result.

Parameters

NameDescription
fmtThe format URL string.
argsArguments to be formatted.

See Also

format_to.

format_to, arg.