Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7220

Re: STL set Problem

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: STL set Problem
Date 2011-06-29 10:57 +1200
Message-ID <96v4jlFfpqU3@mid.individual.net> (permalink)
References <MPG.287405c21e5896de9896bc@news.eternal-september.org>

Show all headers | View raw


On 06/29/11 10:38 AM, Mike Copeland wrote:
>     I have the following application stub that compiles and works.  Now I
> wish to add "find" functionality (based on matching the "baseBib"
> element), and I can't see from the documentation or examples I've found
> hoe to do so.  The STL set "find" seems meant only for scalar objects
> (but the optional insert parameter supports field-based ordering...).
>     What am I missing in this?  TIA

Have you considered using a map rather than a set?

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

STL set Problem mrc2323@cox.net (Mike Copeland) - 2011-06-28 15:38 -0700
  Re: STL set Problem Ian Collins <ian-news@hotmail.com> - 2011-06-29 10:57 +1200
    Re: STL set Problem mrc2323@cox.net (Mike Copeland) - 2011-06-28 16:04 -0700
  Re: STL set Problem Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-06-29 01:00 +0200
    Re: STL set Problem mrc2323@cox.net (Mike Copeland) - 2011-06-28 16:07 -0700
    Re: STL set Problem mrc2323@cox.net (Mike Copeland) - 2011-06-28 21:10 -0700
  Re: STL set Problem Werner Erasmus <werasm@gmail.com> - 2011-07-06 21:29 +0200

csiph-web