StrongId.ixx File
Strongly-typed identifier template. More...
Included Headers
#include <cstdint>
#include <string_view>
#include <helios.ecs.types.TypeDefs>
#include <helios.ecs.types.FuncDefs>
Namespaces Index
| namespace | helios |
| namespace | ecs |
| namespace | types |
Classes Index
| struct | StrongId<Tag> |
|
A strongly-typed identifier using tag-based type safety. More... | |
| struct | hash<helios::ecs::types::StrongId< Tag >> |
Description
Strongly-typed identifier template.
File Listing
The file content with the documentation metadata removed is:
15export namespace helios::ecs::types {
34 StrongId_t id_{};
46 : StrongId(fnv1a_hash(str)) {}
54 explicit constexpr StrongId(const StrongId_t id) noexcept
84 [[nodiscard]] StrongId_t value() const noexcept {
93 [[nodiscard]] explicit operator bool() const noexcept {
100 friend constexpr bool operator==(StrongId, StrongId) noexcept = default;
131 helios::ecs::types::StrongId_t operator()(const helios::ecs::types::StrongId<Tag>& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.