Engine → Core → slot_map.h
slot_map_entry
| Type | Class |
| Namespace | conjure::core |
| Include File Path | engine/include/conjure/core/containers/slot_map.h |
| Source File Path | N/A |
| API ↗ | Containers |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | template <typename... Args> requires std::is_constructible_v<T, Args &&...> explicit slot_map_entry(
const Key &key,
Args &&...args); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mKey | Key | {} | |
| private | mValue | T | — |
Functions
Public
get
gettemplate <usize Index> [[nodiscard]] constexpr decltype(auto) get() noexcept;Tuple protocol for structured bindings: get<0>() is the key, get<1>() the element.
template <usize Index> [[nodiscard]] constexpr decltype(auto) get() const noexcept;key
key[[nodiscard]] constexpr const Key &key() const noexcept;The key that addresses this element.