C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Extension to std::tuples to allow runtime indexing.

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Sat, 18 Apr 2026 16:32:25 +0200
On 18/04/2026 16:24, Muneem via Std-Proposals wrote:
> What I meant, by "tuples have overhead" is that they have a fixed ABI
> for all their specaizations, which means that any book keeping has to be
> on the top of the tuple and can't be inside it.

What does "on top of" or "inside it" mean?
Can you show some code? Or even some pseudocode?


> Since runtime indexed
> tuples are a completely different notion than compile indexed tuple
> since one is a product type like a struct. Runtime indexed tuples is
> heterogeneous list.

Again, I don't understand what any of this means.

Please don't use "overloaded" words. People come from all sorts of
backgrounds and using these words just causes confusion. Instead please
provide the definitions yourself, and add lots of examples to make sure
there's no misunderstandings.

For instance, what you consider a "heterogeneous list" may not be what
other people consider as such. One may understand that as a
std::vector<std::any>.


My 2 c,

--
Giuseppe D'Angelo

Received on 2026-04-18 14:32:27