boost::urls::params_encoded_ref::insert

Insert params

Synopses

Declared in <boost/url/params_encoded_ref.hpp>

Insert params

iterator
insert(
    iterator before,
    std::initializer_list<param_pct_view> init);
» more...

Insert params

iterator
insert(
    iterator before,
    param_pct_view const& p);
» more...

Insert params

template<class FwdIt>
iterator
insert(
    iterator before,
    FwdIt first,
    FwdIt last);
» more...

Exceptions

NameThrown on
system_errorinit contains an invalid percent-encoding.

Return Value

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

Parameters

NameDescription
beforeAn iterator before which the element is inserted. This may be equal to end().
initThe list of params to insert.
pThe param to insert.
firstThe first element to insert.
lastOne past the last element to insert.