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

Name Thrown on
system_error fmt 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

Name Description
fmt The format URL string.
args Arguments to be formatted.

See Also

format_to.

format_to, arg.

Created with MrDocs