JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
Loading...
Searching...
No Matches
jh::pod::tuple< Ts > Struct Template Referencefinal

POD-compatible tuple type supporting structured bindings and tuple-like utilities. More...

#include <jh/pods/tuple.h>

Inheritance diagram for jh::pod::tuple< Ts >:

Detailed Description

template<jh::pod::cv_free_pod_like... Ts>
struct jh::pod::tuple< Ts >

POD-compatible tuple type supporting structured bindings and tuple-like utilities.

The jh::pod::tuple<Ts...> template implements a recursive aggregate where each element is stored in a tuple_field<I, T> layer. This ensures full POD compliance while supporting element-wise access through jh::pod::get, and interoperability with std::tuple_size and std::tuple_element.

Template Parameters
TsParameter pack of element types; each must satisfy cv_free_pod_like.
Note
When targeting GCC ≤ 13, direct brace initialization may fail; prefer using jh::pod::make_tuple for portable creation.
See also
jh::pod::make_tuple
jh::pod::get

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