| Home | Libraries | People | FAQ | More

#### ipv6_address_rule

Rule for An IP version 6 style address.

##### Synopsis

Defined in header `<boost/url/rfc/ipv6_address_rule.hpp>`

    constexpr implementation-defined ipv6_address_rule;

##### Value Type

    using value_type = ipv6_address;

##### Example

Rules are used with the function `grammar::parse`.

    system::result< ipv6_address > rv = grammar::parse( "2001:0db8:85a3:0000:0000:8a2e:0370:7334" , ipv6_address_rule );

##### BNF

    IPv6address =                            6( h16 ":" ) ls32
                /                       "::" 5( h16 ":" ) ls32
                / [               h16 ] "::" 4( h16 ":" ) ls32
                / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
                / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
                / [ *3( h16 ":" ) h16 ] "::"    h16 ":"   ls32
                / [ *4( h16 ":" ) h16 ] "::"              ls32
                / [ *5( h16 ":" ) h16 ] "::"              h16
                / [ *6( h16 ":" ) h16 ] "::"

    ls32        = ( h16 ":" h16 ) / IPv4address
                ; least-significant 32 bits of address

    h16         = 1*4HEXDIG
                ; 16 bits of address represented in hexadecimal

##### Specification

- IP Version 6 Addressing Architecture (rfc4291)
- 3.2.2. Host (rfc3986)

##### See Also

`ipv6_address`, `parse_ipv6_address`, `grammar::parse`.

Convenience header `<boost/url.hpp>`