Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
ipv4_address::ipv4_address (5 of 5 overloads)

Construct from a string.

Synopsis
ipv4_address(
    string_view s);
Description

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

Remarks

For a non-throwing parse function, use parse_ipv4_address.

Exceptions

Type

Thrown On

std::invalid_argument

parse error.

Parameters

Name

Description

s

The string to parse.

Specification
See Also

parse_ipv4_address.


PrevUpHomeNext