|
tagval 0.2.0
Modern C++23 header-only library of tagged values (open/closed enumerations with metadata)
|
Runtime view of an entry's metadata. More...
#include <entry.hpp>
Collaboration diagram for tagval::TagValMetadata:Public Attributes | |
| std::string_view | code |
| std::string_view | label |
| std::optional< comms::Icon > | icon |
| std::optional< comms::Color > | color |
Friends | |
| constexpr bool | operator== (const TagValMetadata &, const TagValMetadata &) noexcept=default |
Runtime view of an entry's metadata.
The string_views point into the eternal NTTP storage of the originating Entry type, so they remain valid for the lifetime of the program.
|
friend |
| std::string_view tagval::TagValMetadata::code |
| std::string_view tagval::TagValMetadata::label |
| std::optional<comms::Icon> tagval::TagValMetadata::icon |
| std::optional<comms::Color> tagval::TagValMetadata::color |