tagval 0.2.0
Modern C++23 header-only library of tagged values (open/closed enumerations with metadata)
Loading...
Searching...
No Matches
tagval::KindEntryView Struct Reference

Flattened, copy-friendly view of a single entry. More...

#include <kind_registry.hpp>

+ Collaboration diagram for tagval::KindEntryView:

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 KindEntryView &, const KindEntryView &) noexcept=default
 

Detailed Description

Flattened, copy-friendly view of a single entry.

The string_views point into the originating entry's NTTP storage and remain valid for the program's lifetime, so a KindEntryView outlives any container it was emitted into.

Friends And Related Symbol Documentation

◆ operator==

constexpr bool operator== ( const KindEntryView ,
const KindEntryView  
)
friend

Member Data Documentation

◆ code

std::string_view tagval::KindEntryView::code

◆ label

std::string_view tagval::KindEntryView::label

◆ icon

std::optional<comms::Icon> tagval::KindEntryView::icon

◆ color

std::optional<comms::Color> tagval::KindEntryView::color

The documentation for this struct was generated from the following file: