mardi 3 novembre 2015

How to implement a SQL like container in C++

Can you pls give me a tip, is there a simple way , using standard stl or boost containers, to emulate a SQL table structure with the ability to sort it by multiple columns (and maybe having clustered indices)? For example, something to hold a given table, sorted by Type, Color, Weight:

ID  Type    Color   Weight  Hex
1   1       NB      3.5     12
2   1       NB      3.5     14
3   1       NB      3.8     03
4   1       DP      4.0     10
5   2       DP      3.5     15
6   2       O       5.0     12
7   2       O       6.0     09

Thank you

Aucun commentaire:

Enregistrer un commentaire