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 7789ef3d8d.
PrevUpHomeNext
ipv6_address::ipv6_address (5 of 5 overloads)

Construct from a string.

Synopsis
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.

Remarks

For a non-throwing parse function, use parse_ipv6_address.

Exception Safety

Exceptions thrown on invalid input.

Exceptions

Type

Thrown On

system_error

The input failed to parse correctly.

Parameters

Name

Description

s

The string to parse.

Specification
See Also

parse_ipv6_address.


PrevUpHomeNext