How do the three parameters relate to each other? Do you want a 3d array? What should the meaning of the three parameters be and how do you think that the container should work with those three template params? In other words, what are your requirements?
My three parameters are strings,
i need to search on the basis of any parameter into the container.
Like if i have inserted a row like a,b,c as three parameters into the container then passing "a" as parameter i should be able to retrieve b and c and in the same way if i have b then i should able to search a and c and vice versa.i am looking for such kind of functionality so that my search operation must be fast
My sample container look like
a,b,c
e,f,g and so on
Thanks for the replies, but i am not using Boost on my system(not included) as for the given framework it not there so i need to look for some different approach
I think OP is looking for something that would allow for log N lookups based on any of the three fields.
Without boost, the only other thing I can come up with is three parallel data structures (std::sets<>)
each sorted on different element.