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

Replace elements

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

Replace elements

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

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

Name

Description

pos

An iterator to the element.

p

The param to assign.

from,to

The range of elements to replace.

init

The list of params to assign.

from

The first element to replace.

to

One past the last element to replace.

first

The first element to insert.

last

One past the last element to insert.

Created with MrDocs