Boost logo

Boost Users :

From: Charles Tolman (ct_at_[hidden])
Date: 2006-12-20 08:45:07


Joaquín Mª López Muñoz <joaquin <at> tid.es> writes:

> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net