ipv4_address

Construct from a string.

Synopsis

void ipv4_address( string_view s);

Declared in file <src/ipv4_address.cpp> at line 41

Description

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

NOTE

For a non-throwing parse function, use parse_ipv4_address.

Exception Safety

Exceptions thrown on invalid input.

Specification

  • 3.2.2. Host (rfc3986)