boost::urls::params_ref::replace

Replace elements

Synopses

Declared in <boost/url/params_ref.hpp>

Replace elements

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

Replace elements

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

Replace elements

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

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 elements 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.