Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit e70692e4d8.
PrevUpHomeNext
static_url::set_host_ipvfuture

(Inherited from url_base)

Set the host to an address.

Synopsis
url_base&
set_host_ipvfuture(
    string_view s);
Description

The host is set to the specified IPvFuture string. The host type will be host_type::ipvfuture.

Example
assert( url().set_host_ipvfuture( "v42.bis" ).buffer() == "//[v42.bis]" );
Complexity

Linear in this->size() + s.size().

Postconditions
this->has_authority() == true && this->host_ipvfuture) == s && this->host_type() == host_type::ipvfuture
Exception Safety

Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

s contains an invalid percent-encoding.

Parameters

Name

Description

s

The string to set.

BNF
IPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
Specification
See Also

set_encoded_host, set_encoded_host_address, set_encoded_host_name, set_host, set_host_address, set_host_name.


PrevUpHomeNext