felixguendling / cista

Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.
https://cista.rocks
MIT License
1.78k stars 113 forks source link

smart pointer for deserializing and storing values from different aligned and unaligned sources #130

Open felixguendling opened 2 years ago

felixguendling commented 2 years ago
std::variant<
  unique_ptr<T> /* aus T const& angelegt und kopiert */,
  T const* /* pointer aus bereits alignedtem speicher gespeichert */,
  aligned_buf /* unaligned pointer musste kopiert werden */
>