mal-packet-weaver
C++20 packet serialization/deserialization library.
Loading...
Searching...
No Matches
mal_packet_weaver::IsPacket Concept Reference

Concept to check if a given type satisfies the requirements of being a packet. More...

#include "packet.hpp"

Concept definition

template<typename T>
concept mal_packet_weaver::IsPacket = requires(T packet)
{
std::is_final_v<T>;
std::is_base_of_v<DerivedPacket<T>, T>;
std::same_as<std::decay_t<decltype(T::static_unique_id)>, UniquePacketID>;
std::same_as<std::decay_t<decltype(T::time_to_live)>, float>;
}
Concept to check if a given type satisfies the requirements of being a packet.
Definition packet.hpp:170

Detailed Description

Concept to check if a given type satisfies the requirements of being a packet.

Definition at line 170 of file packet.hpp.