parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
Loading...
Searching...
No Matches
parcel::prefixed_id< Prefix, Tail > Struct Template Reference

Compile-time concatenation of a FixedString literal prefix with a std::string_view reference tail into one std::string_view with static storage. More...

#include <common.h>

Detailed Description

template<FixedString Prefix, std::string_view const & Tail>
struct parcel::prefixed_id< Prefix, Tail >

Compile-time concatenation of a FixedString literal prefix with a std::string_view reference tail into one std::string_view with static storage.

Hybrid bridge between the two id_join flavors: the prefix is a literal (so callers can hardcode "l:" / "m:" / "s:" at the use site without declaring a bridge string_view), while the tail is a runtime string_view constant (so it can name another cell's static constexpr std::string_view kind_id).

static constexpr std::string_view kind_id = parcel::prefixed_id_v<"l:", T::kind_id>;
constexpr std::string_view prefixed_id_v
Convenience alias yielding the joined std::string_view.
Definition common.h:175
Template Parameters
PrefixLiteral prefix.
TailReference to a std::string_view constant appended after Prefix.

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