[#boost-urls-ipv4_address_rule] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::ipv4_address_rule :relfileprefix: ../../ :mrdocs: Rule for an IP version 4 style address == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/rfc/ipv4_address_rule.hpp#L109[boost/url/rfc/ipv4_address_rule.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr /* implementation-defined */::xref:boost/urls/implementation_defined/ipv4_address_rule_t.adoc[ipv4_address_rule_t] ipv4_address_rule = {}; ---- == Description === Value Type [,cpp] ---- using value_type = ipv4_address; ---- === Example Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[grammar::parse]. [,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 * 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-02.adoc[grammar::parse]. [.small]#Created with https://www.mrdocs.com[MrDocs]#