I am working on a aux module to pass values between polymorphic objects and at some point I have
std::array<void*, N>
and need to send forward
std::tuple<void*, void*, /* N times */>
I can figure some solution with the use of index_sequence
or/and recursions, but all of those look bulky and difficult to read.
Is there any more straightforward way to do this by the means of the standard library?
Also, just in case - am I right that the layout of std::array
is a dense set of respective objects, thus equal to, lets say, void**
of respective length, whereas the layout of tuple allows gaps?