![]() |
Home | Libraries | People | FAQ | More |
Designate a named argument for a replacement field.
Defined in header <boost/url/format.hpp>
template< class T> implementation-defined arg( core::string_view name, T const& arg);
Construct a named argument for a format URL string that contains named replacement fields. The function parameters should be convertible to an implementation defined type able to store the name and a reference to any type potentially used as a format argument.
assert([link url.ref.boost__urls__format `format`]( "user/{id}" , [link url.ref.boost__urls__arg `arg`]( "id" , 1)).buffer() == "user/1" );
An temporary object with reference semantics for a named argument
Name |
Description |
---|---|
|
The argument name |
|
The argument value |
Convenience header <boost/url.hpp>