Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
Loading...
Searching...
No Matches
kcenon::container::detail Namespace Reference

Compile-time verification of type alignment. More...

Classes

struct  circular_ref_guard
 

Functions

template<typename T , typename Variant >
constexpr size_t variant_index_of ()
 

Variables

thread_local std::set< const void * > serializing_containers
 

Detailed Description

Compile-time verification of type alignment.

These static assertions ensure that variant indices match value_types enum. If compilation fails here, the variant type order is wrong.

Function Documentation

◆ variant_index_of()

template<typename T , typename Variant >
size_t kcenon::container::detail::variant_index_of ( )
constexpr

Definition at line 99 of file value.h.

99 {
100 return std::variant<T, Variant>::index();
101 }

Variable Documentation

◆ serializing_containers

thread_local std::set<const void*> kcenon::container::detail::serializing_containers