Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10514
| From | Thomas Boell <tboell@domain.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Issue with STL ( priority Queue) |
| Date | 2011-09-26 13:58 +0200 |
| Organization | albasani.net |
| Message-ID | <20110926135842.30808283@arcadia> (permalink) |
| References | <29cdc97e-972b-4ad5-9d08-edcccea287b1@b6g2000vbz.googlegroups.com> |
On Mon, 26 Sep 2011 04:48:35 -0700 (PDT) nishit gupta <nishit.gupta@nsitlounge.in> wrote: > If the values being thrown in priority queue have same values then I > expect them to come out (when popped) in order in which they were > thrown, but this is not the case, i.e. with below code No, it is not the case. If you want your IDs to appear in a particular order, you have to include them in your comparison function.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Issue with STL ( priority Queue) nishit gupta <nishit.gupta@nsitlounge.in> - 2011-09-26 04:48 -0700 Re: Issue with STL ( priority Queue) Thomas Boell <tboell@domain.invalid> - 2011-09-26 13:58 +0200
csiph-web