AsyncBerkeley
Asynchronous Berkeley sockets. Simple.
Loading...
Searching...
No Matches
io::SocketLike Concept Reference

Concept for types that behave like a socket. More...

#include <io/detail/concepts.hpp>

Concept definition

template<typename Socket>
concept io::SocketLike = requires {
requires std::is_constructible_v<Socket, socket::native_socket_type>;
static_cast<socket::native_socket_type>(Socket{});
}
Concept for types that behave like a socket.
Definition concepts.hpp:120

Detailed Description

Concept for types that behave like a socket.

Template Parameters
SocketThe type to check.