![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
Opaque handle pairing a sparse-array index with a generation counter. More...
#include <types.h>
Public Member Functions | |
| constexpr bool | operator== (const StorageIndex &other) const noexcept |
| Compare two handles for identity. | |
Public Attributes | |
| uint32_t | index = 0 |
| Sparse slot index; 0 is null. | |
| uint32_t | generation = 0 |
| The slot's generation when minted. | |
Opaque handle pairing a sparse-array index with a generation counter.
Valid only while its generation matches the slot's, so a stale handle is detected. Index 0 is null.
|
inlineconstexprnoexcept |
Compare two handles for identity.
| other | Handle to compare against. |