Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
static_url::host_ipvfuture

(Inherited from url_view_base)

Return the host IPvFuture address.

Synopsis
core::string_view
host_ipvfuture() const;
Description

If the host type is host_type::ipvfuture, this function returns the address as a string. Otherwise, if the host type is not an IPvFuture address, it returns an empty string.

Example
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://[v1fe.d:9]/index.htm" ).[link url.ref.boost__urls__static_url.host_ipvfuture `host_ipvfuture`]() == "v1fe.d:9" );
Complexity

Constant.

Exception Safety

Throws nothing.

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

PrevUpHomeNext