Construct from a string.
<include/boost/url/ipv4_address.hpp>
explicit
ipv4_address(core::string_view s);
This function constructs an address from the string `s`, which must contain a valid IPv4 address string or else an exception is thrown.
For a non-throwing parse function, use parse_ipv4_address .
Name | Thrown on |
---|---|
The |
input failed to parse correctly. |
Name | Description |
---|---|
s | The string to parse. |