[pooma-dev] Domain::operator<

James Crotinger JimC at proximation.com
Wed Jun 27 21:12:32 UTC 2001


> as the output. What exactly were you doing in your analysis? On the 
> broader issue as to why operator< exists at all: I can think 
> of no other 
> reason than wanting to put domains in a map. Is LessThanComparable 
> required for map elements?

LessThanComparable is not required as map uses a compare functor instead of
directly using operator<(). But I think you knew that. The actual
requirement is that the compare functor impose a strict weak ordering on the
keys. Which is just saying that it must do for the keys what < normally
does.

	Jim
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/pooma-dev/attachments/20010627/4f823ebb/attachment.html>


More information about the pooma-dev mailing list