[#boost-urls-ipv4_address_rule]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::ipv4&lowbar;address&lowbar;rule
:relfileprefix: ../../
:mrdocs:

Rule for an IP version 4 style address

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/ipv4_address_rule.hpp#L70[boost&sol;url&sol;rfc&sol;ipv4&lowbar;address&lowbar;rule&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr &sol;&ast; implementation-defined &ast;&sol; ipv4&lowbar;address&lowbar;rule = &lcub;&rcub;;
----

== Description

== Value Type
[,cpp]
----
using value_type = ipv4_address;
----
== Example
Rules are used with the function xref:boost/urls/grammar/parse-09.adoc[`grammar&colon;&colon;parse`]&period;

[,cpp]
----
system::result< ipv4_address > rv = grammar::parse( "192.168.0.1", ipv4_address_rule );
----
== BNF
[,cpp]
----
IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet

dec-octet   = DIGIT                 ; 0-9
            / %x31-39 DIGIT         ; 10-99
            / "1" 2DIGIT            ; 100-199
            / "2" %x30-34 DIGIT     ; 200-249
            / "25" %x30-35          ; 250-255
----
== Specification
* https://en.wikipedia.org/wiki/IPv4[]
* https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2[]

== See Also

xref:boost/urls/ipv4_address.adoc[`ipv4&lowbar;address`], xref:boost/urls/parse_ipv4_address.adoc[`parse&lowbar;ipv4&lowbar;address`], xref:boost/urls/grammar/parse-09.adoc[`grammar&colon;&colon;parse`]&period;


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