parcel 0.2.2
Wrappable, wire-transferable C++23 value system with JSON serialization
Loading...
Searching...
No Matches
parcel::PrimitiveStorage Concept Reference

Concept naming the set of types PrimitiveCell accepts as storage. More...

#include <primitive.h>

Concept definition

template<typename T>
std::same_as<T, char> || std::same_as<T, bool> || std::same_as<T, comms::u8> ||
std::same_as<T, comms::u16> || std::same_as<T, comms::u32> || std::same_as<T, comms::u64> ||
std::same_as<T, comms::i8> || std::same_as<T, comms::i16> || std::same_as<T, comms::i32> ||
std::same_as<T, comms::i64> || std::same_as<T, comms::f32> || std::same_as<T, comms::f64> ||
std::same_as<T, comms::u128> || std::same_as<T, comms::i128> ||
std::same_as<T, comms::cs8> || std::same_as<T, comms::cs16> || std::same_as<T, comms::cs32> ||
std::same_as<T, comms::cs64> || std::same_as<T, comms::cu8> || std::same_as<T, comms::cu16> ||
std::same_as<T, comms::cu32> || std::same_as<T, comms::cu64> || std::same_as<T, comms::cf32> ||
std::same_as<T, comms::cf64> || std::same_as<T, std::string>
Concept naming the set of types PrimitiveCell accepts as storage.
Definition primitive.h:286

Detailed Description

Concept naming the set of types PrimitiveCell accepts as storage.

Covers char, bool, the commons fixed-width integers (comms::u8-u64, comms::i8-i64, plus 128-bit on supporting toolchains), the floats (comms::f32 / comms::f64), the complex numbers (comms::cs8-cu64, comms::cf32 / comms::cf64), and std::string.

Template Parameters
TCandidate storage type.