Boost logo

Boost Users :

Subject: Re: [Boost-users] [MultiIndex] is it possible to create multi-key key-extractors?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-08-08 23:24:32


Mostafa wrote:
> That's pretty much what I figured from the documentation, I was just
> hoping for some kind of workaround that I might have missed.
> Well, here goes a feature request ... (A rough outline.)
> I propose adding a key-extractorS concept to the multi-index library.
> Something along the lines of the existing key-extractor concept,
> modified such that
> key_extractorS::result_type is a Boost.Range of keys

Sorry, but I don't think that this can be implemented
in a way that is consistent with the rest of the library.
You'd be better off using an auxillary map of pointers.
No implementation that I can think of is going to be
more efficient than that, anyway.

In Christ,
Steven Watanabe

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at