SDL3pp
A slim C++ wrapper for SDL3
|
Wrapper key to value result callbacks. More...
Public Types | |
using | KeyType = KEY |
Key type. | |
using | ValueType = VALUE |
Value type. | |
Static Public Member Functions | |
static ValueType * | Wrap (KeyType key, ValueType &&value) |
Change the value into a void* pointer held by key. | |
static bool | contains (KeyType handle) |
True if handle is stored. | |
static const ValueType & | at (KeyType handle) |
Return unwrapped value of handle. | |
static ValueType | release (KeyType key) |
Return unwrapped value associated by key and remove association. | |
static bool | erase (KeyType key) |
Remove association. | |
KEY | the key type. |
VALUE | the value type. |
VARIANT | the variant, if more than one listener type is associated. |
|
inlinestatic |
key | the key associated. |
|
inlinestatic |
key | |
value |