| Home | Libraries | People | FAQ | More

##### any_address::emplace_unix_path

Replaces the current object with a UNIX socket path.

###### Synopsis

    void
    emplace_unix_path(
        std::string path);

###### Description

Destroys the current contained object and constructs a new UNIX socket path from the passed value. This function can change the underlying type of object held by `*this`.

The constructed object has `this->type() == address_type::unix_path` and `this->unix_socket_path() == path`.

###### Exception safety

Basic guarantee. Memory allocations may throw.

###### Object lifetimes

Invalidates views pointing into `*this`.