|
BCNP 3.2.1
Batched Command Network Protocol
|
Type trait to detect messages with a durationMs field. More...
#include <message_queue.h>
Static Public Member Functions | |
| template<typename U > | |
| static auto | test (int) -> decltype(std::declval< U >().durationMs, std::true_type{}) |
| template<typename > | |
| static std::false_type | test (...) |
Static Public Attributes | |
| static constexpr bool | value = decltype(test<T>(0))::value |
Type trait to detect messages with a durationMs field.
Messages used with MessageQueue must have a uint16_t durationMs field that specifies how long the message should be "active" in milliseconds.
| T | The type to check |
Definition at line 52 of file message_queue.h.
|
static |
|
static |
|
staticconstexpr |
Definition at line 57 of file message_queue.h.