boost::urls::params_encoded_ref::replace :: Boost Libraries Documentation

# 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

Name | Thrown on
`system_error` | `p` 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

Name | Description
--- | ---
pos | An iterator to the element.
p | The param to assign.
from,to | The range of params 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