Skip to content

Engine → Core → slot_map.h

slot_map_entry

Syntax

template <typename Key, typename T> class slot_map_entry

Constructors

AccessSignatureDescription
publictemplate <typename... Args> requires std::is_constructible_v<T, Args &&...> explicit slot_map_entry( const Key &key, Args &&...args);

Variables

AccessNameTypeDefaultDescription
privatemKeyKey{}
privatemValueT—

Functions

Public

get

template <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

[[nodiscard]] constexpr const Key &key() const noexcept;

The key that addresses this element.

value

[[nodiscard]] constexpr T &value() noexcept;

The element itself.

[[nodiscard]] constexpr const T &value() const noexcept;