I am trying to represent a relation (table) in C++ code:
- The columns of the relation are integers.
- The number of columns in the relation is fixed at runtime.
- No duplicates should be allowed (this is the major source of cost).
- I want to have a map from names to relations.
Any ideas for an efficient implementation, the main issue here is detecting duplicates at insertion time, it can be very costly.