Construct from a string.

Synopsis

Declared in header </boost/url/ipv4_address.hpp#L146[boost/url/ipv4_address.hpp,window=blank_]>

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.

Note
For a non-throwing parse function, use parse_ipv4_address.

Exception Safety

Exceptions thrown on invalid input.

Specification

Return Value

  • void

Parameters

Name Type

s

string_view