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

Compile-time concatenation of FixedString literals into a single std::string_view with static storage. More...

#include <common.h>

Detailed Description

template<FixedString... Parts>
struct parcel::id_join_lit< Parts >

Compile-time concatenation of FixedString literals into a single std::string_view with static storage.

Library-author-facing variant: lets a CRTP base form its own kind_id directly from string literals plus a FixedString NTTP it received as a template parameter, without forcing the author to declare a bridge static constexpr std::string_view:

template <typename Self, parcel::FixedString EventId>
class BaseEvent : public parcel::SelfStructCell<Self> {
static constexpr std::string_view kind_id =
parcel::id_join_lit_v<"s:event:", EventId>;
// ...
};
CRTP base for struct cells that are their own payload.
Definition struct.h:984
constexpr std::string_view id_join_lit_v
Convenience alias yielding the joined std::string_view.
Definition common.h:140
Template Parameters
PartsFixedString literals to concatenate in order.

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