28#include <commons/display_info.hpp>
29#include <commons/fixed_string.hpp>
30#include <commons/types.hpp>
41#if defined(COMMONS_HAS_INT128)
63using comms::FixedString;
90template <std::string_view
const&... Parts>
92 static constexpr std::size_t total_size = (Parts.size() + ... + 0);
93 static constexpr auto buf = [] {
94 std::array<char, total_size> r{};
96 ((std::ranges::copy(Parts, r.begin() + off), off += Parts.size()), ...);
99 static constexpr std::string_view value{buf.data(), buf.size()};
103template <std::string_view
const&... Parts>
126template <FixedString... Parts>
128 static constexpr std::size_t total_size = (Parts.view().size() + ... + 0);
129 static constexpr auto buf = [] {
130 std::array<char, total_size> r{};
132 ((std::ranges::copy(Parts.view(), r.begin() + off), off += Parts.view().size()), ...);
135 static constexpr std::string_view value{buf.data(), buf.size()};
139template <FixedString... Parts>
161template <FixedString Prefix, std::
string_view const& Tail>
163 static constexpr std::size_t total_size = Prefix.view().size() + Tail.size();
164 static constexpr auto buf = [] {
165 std::array<char, total_size> r{};
166 std::ranges::copy(Prefix.view(), r.begin());
167 std::ranges::copy(Tail, r.begin() + Prefix.view().size());
170 static constexpr std::string_view value{buf.data(), buf.size()};
174template <FixedString Prefix, std::
string_view const& Tail>
comms::DisplayInfo DisplayInfo
Display info attached to a cell or descriptor — re-exported from comms::DisplayInfo.
Definition common.h:75
constexpr std::string_view id_join_lit_v
Convenience alias yielding the joined std::string_view.
Definition common.h:140
constexpr std::string_view prefixed_id_v
Convenience alias yielding the joined std::string_view.
Definition common.h:175
constexpr std::string_view id_join_v
Convenience alias yielding the joined std::string_view.
Definition common.h:104
nlohmann::json typedef shared across cell types.
Compile-time concatenation of FixedString literals into a single std::string_view with static storage...
Definition common.h:127
Compile-time concatenation of std::string_view references into a single std::string_view with static ...
Definition common.h:91
Compile-time concatenation of a FixedString literal prefix with a std::string_view reference tail int...
Definition common.h:162