C++ Logo

std-proposals

Advanced search

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

From: Muneem <itfllow123_at_[hidden]>
Date: Fri, 17 Apr 2026 07:26:29 +0500
Abstract: This proposal provides a specialization of std::tuple that can be
indexed at runtime. It also introduces specializations for std::variant and
std::optional to ensure the interface of such a tuple remains efficient.
I wrote 3 files, the first was a complete draft that I am gonna paste as a
txt file, the second was a formatted docx file that I wanted to float
around the internet to get some feedback before I post it over here (sadly
no on was interested in the poor man's document), and the third is the
shortened version where I removed all the code and kept it conceptual.
Sorry for pasting three files at once, but I just wanted to see which one
is acceptable and which one isn't. Personally, I like the first two.

Received on 2026-04-17 02:26:44