Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
param_view::param_view (3 of 3 overloads)

Constructor.

Synopsis
param_view(
    param const& other);
Description

This function constructs a param which references the character buffers representing the key and value in another container. Ownership of the buffers is not transferred; the caller is responsible for ensuring that the assigned buffers remain valid until they are no longer referenced.

Example
param qp( "key" , "value" );
[link url.ref.boost__urls__param_view.param_view `param_view`] qpv( qp );
Postconditions
this->[link url.ref.boost__urls__param_view.key `key`] == [link url.ref.boost__urls__param_view.key `key`] && this->[link url.ref.boost__urls__param_view.value `value`] == [link url.ref.boost__urls__param_view.value `value`] && this->[link url.ref.boost__urls__param_view.has_value `has_value`] == other.has_value
Complexity

Constant.

Exception Safety

Throws nothing.

Parameters

Name

Description

other

The param to reference


PrevUpHomeNext