boost::urls::ipv4_address::ipv4_address :: Boost Libraries Documentation

# boost::urls::ipv4_address::ipv4_address

Construct from a string.

## Synopsis

Declared in `<boost/url/ipv4_address.hpp>`

    explicit
    ipv4_address(core::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.

| For a non‐throwing parse function, use `parse_ipv4_address`.

## Exception Safety

Exceptions thrown on invalid input.

## Specification

- 3.2.2. Host (rfc3986)

## Exceptions

Name | Thrown on
`system_error` | The input failed to parse correctly.

## Parameters

Name | Description
--- | ---
s | The string to parse.

## See Also

`parse_ipv4_address`.

Created with MrDocs