:relfileprefix: ../../ [#boost-urls-ipv4_address_rule] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::ipv4_address_rule Rule for an IP version 4 style address === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr pass:q[_implementation-defined_] ipv4_address_rule = {}; ---- === Description [,cpp] ---- using value_type = ipv4_address; ---- === Rules are used with the function xref:boost/urls/grammar/parse-06.adoc[grammar::parse] . [,cpp] ---- system::result< ipv4_address > rv = grammar::parse( "192.168.0.1", ipv4_address_rule ); ---- [,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 ---- * link:https://en.wikipedia.org/wiki/IPv4[IPv4 (Wikipedia)] * link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2[3.2.2. Host (rfc3986)] === See Also xref:boost/urls/ipv4_address.adoc[ipv4_address] , xref:boost/urls/parse_ipv4_address.adoc[parse_ipv4_address] , xref:boost/urls/grammar/parse-06.adoc[grammar::parse] .