|
tagval 0.2.0
Modern C++23 header-only library of tagged values (open/closed enumerations with metadata)
|
Runtime list of metadata pointers for a single OpenEnded kind. More...
#include <openended_registry.hpp>
Static Public Member Functions | |
| static void | add (const TagValMetadata *m) |
| Register a pinned metadata pointer. | |
| static std::span< const TagValMetadata *const > | all () noexcept |
| static const TagValMetadata * | find (std::string_view code) noexcept |
Runtime list of metadata pointers for a single OpenEnded kind.
The Owner template parameter keeps registries for distinct kinds isolated.
|
inlinestatic |
Register a pinned metadata pointer.
Idempotent on ->code: a second call with a pointer whose code is already known is a no-op.
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |