SDL3pp
A slim C++ wrapper for SDL3
|
Safely wrap Semaphore for non owning parameters.
Public Member Functions | |
constexpr | SemaphoreParam (SemaphoreRaw value) |
Constructs from SemaphoreRaw. | |
constexpr | SemaphoreParam (std::nullptr_t _=nullptr) |
Constructs null/invalid. | |
constexpr | operator bool () const |
Converts to bool. | |
constexpr auto | operator<=> (const SemaphoreParam &other) const =default |
Comparison. | |
constexpr | operator SemaphoreRaw () const |
Converts to underlying SemaphoreRaw. | |
Public Attributes | |
SemaphoreRaw | value |
parameter's SemaphoreRaw | |