Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
url_view::host_type

Return the host type.

Synopsis
urls::host_type
host_type() const;
Description

This function returns one of the following constants representing the type of host present.

When has_authority is false, the host type is host_type::none.

Example
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "https://192.168.0.1/local.htm" ).[link url.ref.boost__urls__url_view.host_type `host_type`]() == [link url.ref.boost__urls__host_type `host_type::ipv4`] );
Complexity

Constant.

Exception Safety

Throws nothing.

Specification

PrevUpHomeNext