boost::urls::ipv6_address::ipv6_address

Construct from a string.

Synopsis

Declared in <include/boost/url/ipv6_address.hpp>

ipv6_address(core::string_view s);

Description

This function constructs an address from the string `s`, which must contain a valid IPv6 address string or else an exception is thrown.

NOTE

For a non-throwing parse function, use parse_ipv6_address .

Exceptions thrown on invalid input.

  • 3.2.2. Host (rfc3986)
  • Exceptions

    Name Thrown on
    The

    input failed to parse correctly.

    Parameters

    Name Description
    s

    The string to parse.

    See Also

    parse_ipv6_address .

    Created with MrDocs