20 Dec
2006
20 Dec
'06
1:45 p.m.
Joaquín Mª López Muñoz
So, if I'm following you, you are trying to get a data structure such that
c.find(str)
finds an element if *any* of the strings in its vector<MyStringType> member is equal to str. Is that right?
Correct.
If so, Boost.MultiIndex does not handle directly such an scenario. As you point out, you'd have to resort to an adhoc structure holding some sort of references to the elements, as many references to the same element as entries held by its vector member.
Yep. Thats what I thought. In retrospect I am going to have a look at the use cases for it as the problem could be handled slightly differently. But thanks for the replay and confirming my thoughts. All the best Charles