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 9fc5439165.
PrevUpHomeNext
static_url_base::host_type

(Inherited from url_view_base)

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 will be host_type::none.

Example
assert( url_view( "https://192.168.0.1/local.htm" ).host_type() == host_type::ipv4 );
Complexity

Constant.

Exception Safety

Throws nothing.

Specification

PrevUpHomeNext