[#boost-urls-host_type]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::host&lowbar;type
:relfileprefix: ../../
:mrdocs:

Identifies the type of host in a URL&period;

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/host_type.hpp#L24[boost&sol;url&sol;host&lowbar;type&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class host&lowbar;type : int;
----

== Description

Values of this type are returned by URL views and containers to indicate the type of host present in a URL&period;

== Members

[cols="1,4"]
|===
| Name| Description
| `none` 
| No host is specified&period;
| `name` 
| A host is specified by reg&hyphen;name&period;
| `ipv4` 
| A host is specified by xref:boost/urls/ipv4_address.adoc[`ipv4&lowbar;address`]&period;
| `ipv6` 
| A host is specified by xref:boost/urls/ipv6_address.adoc[`ipv6&lowbar;address`]&period;
| `ipvfuture` 
| A host is specified by IPvFuture&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
