| Home | Libraries | People | FAQ | More

###### any_address::any_address (4 of 5 overloads)

Constructs an address containing a host and a port.

###### Synopsis

    any_address(
        host_and_port value) noexcept;

###### Description

Results in an address with `this->type() == address_type::host_and_port`, `this->hostname() == value.hostname()` and `this->port() == value.port()`.

###### Object lifetimes

`*this` and `value` will have independent lifetimes (regular value semantics).

###### Exception safety

No-throw guarantee.