Engine → Core → slot_map.h
slot_key
| Type | Struct |
| Namespace | conjure::core |
| Include File Path | engine/include/conjure/core/containers/slot_map.h |
| Source File Path | N/A |
| API ↗ | Containers |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | generation | u32 | 0 | |
| public | index | u32 | 0 |
Functions
Public
from_u64
from_u64Inverse of to_u64().
is_valid
is_valid[[nodiscard]] constexpr bool is_valid() const noexcept;True for every key a slot_map has issued; false for the null key.
to_u64
to_u64[[nodiscard]] constexpr u64 to_u64() const noexcept;Packs the key into one integer (generation in the high 32 bits). Used for ImTextureID style opaque handles and serialisation.
Operator Overloads
Public
operator<=>
operator<=>[[nodiscard]] constexpr auto operator<=>(
const slot_key &) const noexcept = default;