Constructor
template<
class OptionalString>
void
param(
string_view key,
const OptionalString& value);
Declared in file <boost/url/param.hpp> at line 278
This constructs a parameter with a key and value.
No validation is performed on the strings. Ownership of the key and value is acquired by making copies.
param qp( "key", "value" );
param qp( "key", optional("value") );
param qp( "key", boost::none );
param qp( "key", nullptr );
param qp( "key", no_value );
this->key == key && this->value == value && this->has_value == true
Linear in `key.size() + value.size()`.
Calls to allocate may throw.