
Am Mon, 31 Oct 2005 18:14:00 +0100 schrieb JOAQUIN LOPEZ MU?Z:
// lookup by (A,B);
es.find(make_tuple(a,b));
// lookup by A alone
es.find(make_tuple(a));
// lookup by B alone // note get<1> retrieves the second index.
es.get<1>().find(b);
Is the issue clearer now? If not, please tell me so and I'll try to explain myself a bit further.
A little clearer, but not at all. I'm really new to Boost, so I doesn't understand all. The questions seems to by stupic, but how could I access the data looked up by B alone? What should I assign to the left?
??? = es.get<1>().find(b);
An iterator or what else? There was a print_out_by_name function in docs that I tried to adopt, but I failed. And the compile errors are not very helpfull. As normal with template programming :-( regards Andreas