boost::urls::params_encoded_ref::replace

Replace params

Synopses

Declared in <boost/url/params_encoded_ref.hpp>

Replace params

iterator
replace(
    iterator pos,
    param_pct_view const& p);
» more...

Replace params

iterator
replace(
    iterator from,
    iterator to,
    std::initializer_list<param_pct_view> init);
» more...

Replace params

template<class FwdIt>
iterator
replace(
    iterator from,
    iterator to,
    FwdIt first,
    FwdIt last);
» more...

Exceptions

NameThrown on
system_errorp contains an invalid percent-encoding.

Return Value

  • An iterator to the element.
  • An iterator to the first element inserted, or one past to if init.size() == 0.
  • An iterator to the first element inserted, or one past to if first == last.
  • An iterator to the first element inserted, or one past to if first == last.

Parameters

NameDescription
posAn iterator to the element.
pThe param to assign.
from,toThe range of params to replace.
initThe list of params to assign.
fromThe first element to replace.
toOne past the last element to replace.
firstThe first element to insert.
lastOne past the last element to insert.