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);
cpp

Format arguments into a URL

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

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

Created with MrDocs