Re:Help with Cryptic C++ code
Posted: Thu Feb 23, 2006 1:59 am
BI approximates his mood using a Lagrange algorithm. Sometimes he's a jolly chap to have around, sometimes he's a bit testy. ;D
The Place to Start for Operating System Developers
http://f.osdev.org/
That#s what it is about, fyiErr.. ??
That was to beyond_infinity's post.
Think you need to do that bro.beyond infinity wrote: @Neo: Slow down, breathe and relax:
The first post from you in this thread (which is about C++ multimaps BTW) is the one where you where talk about breakpoint 2006, which confused me. Hence the "Err..??"I have been talking to solar about an event, then you ask anyone but me what the heck I'm talking about and then you wonder why I'm a bit testy about that? Oh, come on, lad.
Sure.Now, I suppose we'll have a coffee and give it a rest, ok?
Just wanted to confirm this. If I have a [font=Courier New]multimap<priority, Struct1>[/font]Solar wrote: When constructing a multimap, you can pass to the constructor a function object (predicate) that does the ordering. By default, this is [tt]less[/tt], meaning that, if you get two elements X, Y with X->first == Y->first, you will get one after another, but the exact order is unspecified (as neither is "less" than the other). This is called "strict weak ordering".
I did get this with gcc (is it the same with the others?)struct_var2
struct_var5
struct_var1
struct_var3
struct_var4
No.Neo wrote: ...when I traverse through this multimap will I get the elements in this order...
The order probably is stable but unpredictable up-front. The multimap probably uses a set for each key, with a tree or a hash implementation behind it.Neo wrote: Hmmm........ ok. Should keep that in mind then.
@Solar: Thanks.