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 5002c2d6a2.
PrevUpHomeNext

ipv4_address_rule

Rule for an IP version 4 style address.

Synopsis

Defined in header <boost/url/rfc/ipv4_address_rule.hpp>

constexpr implementation-defined ipv4_address_rule;
Value Type
using value_type = ipv4_address;
Example

Rules are used with the function grammar::parse.

result< ipv4_address > rv = grammar::parse( "192.168.0.1", ipv4_address_rule );
BNF
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
See Also

ipv4_address, parse_ipv4_address, grammar::parse.

Convenience header <boost/url.hpp>


PrevUpHomeNext