Tuples of unknown size/parameter types
Posted
by myahya
on Stack Overflow
See other posts from Stack Overflow
or by myahya
Published on 2010-03-10T12:02:10Z
Indexed on
2010/03/23
4:21 UTC
Read the original article
Hit count: 387
c++
|boost-tuples
I need to create a map, from integers to sets of tuples, the tuples in a single set have the same size. The problem is that the size of a tuple and its parameter types can be determined at runtime, not compile time. I am imagining something like:
std::map<int, std::set<boost::tuple> >
but not exctly sure how to exactly do this, bossibly using pointers.
The purpose of this is to create temporary relations (tables), each with a unique identifier (key), maybe you have another approach.
© Stack Overflow or respective owner