38 explicit operator bool() const noexcept
RAII-style socket wrapper. Since socket is closed on wrapper destruction, initializing multiple guard...
SOCKET get() const noexcept
void reset() noexcept
Closes the socket.
SOCKET release() noexcept
Returns the socket descriptor and releases ownership.
socket_guard & operator=(const socket_guard &)=delete
socket_guard(socket_guard &&rhs) noexcept
SOCKET operator*() const noexcept
Alias for socket_guard::get.
socket_guard(SOCKET sock=INVALID_SOCKET) noexcept
socket_guard(const socket_guard &)=delete
socket_guard & operator=(socket_guard &&rhs) noexcept
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)