1#ifndef ENTT_CORE_MONOSTATE_HPP
2#define ENTT_CORE_MONOSTATE_HPP
4#include "../config/config.h"
27 template<
typename Type>
37 template<
typename Type>
38 operator Type() const noexcept {
43 template<
typename Type>
44 inline static ENTT_MAYBE_ATOMIC(Type) value{};
51template<
id_type Value>
monostate< Value > monostate_v
Helper variable template.
Minimal implementation of the monostate pattern.
void operator=(Type val) const noexcept
Assigns a value of a specific type to a given key.