Boost.URL Logo

PrevUpHomeNext

params_encoded

A random-access view of percent-encoded query parameters.

Synopsis

Defined in header <boost/url/params_encoded.hpp>

class params_encoded
Types

Name

Description

const_iterator

A read-only forward iterator to an encoded query parameter.

const_reference

A type which can represent a parameter as a const reference.

difference_type

A signed integer type to represent differences.

iterator

A read-only forward iterator to an encoded query parameter.

reference

A type which can represent a parameter as a const reference.

size_type

An unsigned integer type to represent sizes.

value_type

A type which can represent a parameter as a value.

Member Functions

Name

Description

append

Construct element at the last position of the container.

assign

Assignment from initializer list.

Assignment from iterators.

at

Return indexed element with bounds checking.

Return first element matching key with bounds checking.

back

Return last element.

begin

Returns an iterator to the beginning of container.

clear

Clears the contents of the container.

contains

Check if container contains an element with the specified key.

count

Count number of elements with a specified key.

decoded

Return a view of this container as percent-decoded query parameters.

empty

Return true if the container is empty.

end

Returns an iterator to one past the last element.

erase

Erases element from container at position.

Erases range of elements from container.

Erases elements associated with a specified key from container.

find

Find element with a specified key.

Find element with a specified key after specified position.

front

Return first element.

insert

Insert element in container.

Insert elements in container.

Constructs a key-only query parameter at container position.

Constructs a value at container position.

operator=

Assignment.

Assignment from initializer list.

operator[]

Return indexed element.

params_encoded [constructor]

Constructor.

pop_back

Remove element at the last position of the container.

push_back

Insert value at the last position of the container.

remove_value

Remove a value from the container.

replace

Replace container element.

Replace container elements.

Constructs a value at container position.

Constructs a key-only value at container position.

replace_value

Replace element value.

size

Returns the number of query parameters in the url.

Description

The elements of this class dereference directly to the percent-encoded values as string views. This avoids the necessity allocating decoded strings.

Convenience header <boost/url.hpp>


PrevUpHomeNext