Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
any_address::any_address (4 of 5 overloads)

Constructs an address containing a host and a port.

Synopsis
any_address(
    host_and_port value);
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.


PrevUpHomeNext