Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
params_encoded_view::operator params_view

Conversion.

Synopsis
operator params_view() const;
Description

This conversion returns a new view which references the same underlying character buffer, and whose iterators and members return ordinary strings with decoding applied to any percent escapes. Ownership is not transferred; the caller is responsible for ensuring the lifetime of the buffer extends until it is no longer referenced.

Example
[link url.ref.boost__urls__params_encoded_view.params_view `params_view`] qp = [link url.ref.boost__urls__parse_path `parse_path`]( "/path/to/file.txt" ).value();
Postconditions
[link url.ref.boost__urls__params_encoded_view.params_view `params_view`]( *this ).buffer().data() == this->[link url.ref.boost__urls__params_encoded_view.buffer `buffer`]().[link url.ref.boost__urls__pct_string_view.data `data`]()
Complexity

Constant

Exception Safety

Throws nothing


PrevUpHomeNext