19 Feb
2007
19 Feb
'07
8:20 p.m.
Gottlob Frege wrote:
I was just concerned that you were putting too much meaning into std::pair (in general, not just in the context of maps). The members never really should have been called 'first/second' (implying order or lack of symmetry or any other meaning). I think it was just such a generic concept ('pair') that it was hard to name the members - maybe they should have just been called 'foo' and 'bar' to avoid any meaning.
std::pair members really are asymmetric, so the names 'first' and 'second' are certainly in place. Think operator< ...