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


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

Re: STL set Problem

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: STL set Problem
Date Wed, 29 Jun 2011 10:57:29 +1200
Lines 12
Message-ID <96v4jlFfpqU3@mid.individual.net> (permalink)
References <MPG.287405c21e5896de9896bc@news.eternal-september.org>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net qc6FTgGFzFwl74iz3Qe78Qtr5g3kx/JWO5vgHFmDCxpHNhrgLT
Cancel-Lock sha1:/S/TSMPvoBYClAMiCGI81/N5Bhs=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <MPG.287405c21e5896de9896bc@news.eternal-september.org>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:7220

Show key headers only | 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