Re: STL list - advanced sorting

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"neilsolent" <neil@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1165082500.475242.59540@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
The objects I put in the container are quite complex, not integers or
anything you would consider to be simple keys.

Sets can store anything for which you can provide an ordering predicate.
And since you keep talking about sorting, you clearly can.

I need to be able to
sort on various attributes of the objects ..

You might want to look at Boost's multi-index containers:

http://www.boost.org/libs/multi_index/doc/index.html

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: EF Designer ignores my foreign key
    ... ItemGroupId}' that are partially contained in the set of primary keys ... I don't know why the EF team didn't fix this, and I can only describe from my own experience with reverse engineering an entity model from a relational schema, but as I do recall we had a similar bug very early on in LLBLGen Pro as well and I think it was even in the first beta cycle of v1. ... Well, unless they store that information, you can't: someone could have written the store XML meta data by hand and could have made an error. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: External sorting
    ... Which is the best external sorting algorithm to use when you have to ... scheme was to read the data and extract keys and file pointers (LBA's ... B+ tree, again of keys, pointers, and tree pointers. ...
    (comp.programming)
  • Re: Buying Keys from Blizzard?
    ... Battlechest which has up to BC and another $40 for WotLK. ... point I can justify passing the store for the deal but if Blizz is ... IIRC Blizzard charges the same as Gamestop, ... DVD keys or buy the DVD keys from Blizzard. ...
    (alt.games.warcraft)
  • Re: Where does your APL application hold its settings?
    ... the accepted practices call for on other Unix variants. ... If you are going to "avoid platform specific facilities" then you're going ... The keys are easy to find and to ... store a file name than to store a copy of a file. ...
    (comp.lang.apl)