boost::urls::params_ref::set

Set a value

Synopses

Declared in <boost/url/params_ref.hpp>

Set a value

iterator
set(
    iterator pos,
    core::string_view value);
» more...

Set a value

iterator
set(
    core::string_view key,
    core::string_view value,
    ignore_case_param ic = {});
» more...

Return Value

  • An iterator to the element.
  • An iterator to the appended or modified element.

Parameters

NameDescription
posAn iterator to the element.
valueThe value to assign. The empty string still counts as a value. That is, has_value for the element is true.
keyThe key to match. By default, a case-sensitive comparison is used.
icAn optional parameter. If the value ignore_case is passed here, the comparison is case-insensitive.