boost::corosio::make_ipv6_address

Create an IPv6 address from a string.

Synopsis

[[nodiscard]]
capy::io_result<ipv6_address>
make_ipv6_address(std::string_view s) noexcept;

Description

This function attempts to parse the string as an IPv6 address and returns an error code if the string does not contain a valid IPv6 address.

Exception Safety

Throws nothing.

Return Value

The error code, empty on success, and the parsed address — default‐constructed on failure.

The return value should not be discarded.

Parameters

Name

Description

s

The string to parse.

Created with MrDocs