This is how this paper should have died.
Why?


In no circumstances have I ever found myself with:
"I have a random index, I want to use it to index into a thing that has a bunch of different types of data, to do..." what specific thing exactly?

Like seriously. What is the point of this?


From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> on behalf of Muneem via Std-Proposals <std-proposals@lists.isocpp.org>
Sent: Friday, April 17, 2026 4:26:29 AM
To: std-proposals@lists.isocpp.org <std-proposals@lists.isocpp.org>
Cc: Muneem <itfllow123@gmail.com>
Subject: [std-proposals] Extension to std::tuples to allow runtime indexing.
 
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.