Doubt about using boost:multiindex containers with classes
14 Nov
2010
14 Nov
'10
9:47 p.m.
Dear All, I've written a set of classes. Suppose I have a class called WorkCenter and another called Machine. I created a smart pointer to each Machine object. Each Workcenter has one or more Machines. I could create a vector of MachineSmartPointers. But I will need to search for Machines by some different index keys, like by the unique ID (an Int) or by Tag (a String). I could not find any example like that. In the Boost documentation the example is made with a struct. I know that a class, in C++, is very similar to a Struct. But I dont know how to write this code. Could someone give me a light on this? Thanks in advance. -- sds. Written by - Escrito por: José Augusto M. Andrade Jr. - JamaJ
5128
Age (days ago)
5128
Last active (days ago)
0 comments
1 participants
participants (1)
-
José Augusto Jr.