boost::urls::segments_encoded_ref::assign :: Boost Libraries Documentation

# boost::urls::segments_encoded_ref::assign

Assign segments

## Synopses

Declared in `<boost/url/segments_encoded_ref.hpp>`

Assign segments

    void
    assign(std::initializer_list<pct_string_view> init);

» more...

Assign segments

    template<class FwdIt>
    void
    assign(
        FwdIt first,
        FwdIt last);

» more...

## Exceptions

Name | Thrown on
`system_error` | The list contains an invalid percent‐encoding.

## Parameters

Name | Description
init | The list of segments to assign.
first | The first element in the range.
last | One past the last element in the range.

Created with MrDocs