|
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.
|
Proxy wrapper that lazily exposes flattened tuple access. More...
#include <jh/metax/flatten_proxy.h>
Public Member Functions | |
| template<std::size_t I> | |
| constexpr auto | get () const noexcept |
| template<typename... Ts> | |
| constexpr | operator std::tuple< Ts... > () const |
| constexpr | operator auto () const |
Public Attributes | |
| Tuple | tuple |
Proxy wrapper that lazily exposes flattened tuple access.
This proxy encapsulates any tuple-like object and exposes a flattened get interface compatible with
structured bindings and std::tuple introspection.
The proxy can be implicitly converted to a fully materialized
std::tuple. During conversion, element category is preserved:
std::reference_wrapper<T> is transparently propagated std::tuple can hold value, reference, or wrapper types
All operations are constexpr and non-owning — the underlying tuple-like object is never copied or moved unless materialization is explicitly requested (e.g. via implicit conversion to std::tuple).