[LLVMdev] Some enhancements to ImmutableSet and FoldingSet

Chris Lattner clattner at apple.com
Wed Feb 11 16:50:50 PST 2009


On Feb 11, 2009, at 12:24 PM, Ted Kremenek wrote:

> Actually, neither of these methods are needed for ImmutableSet.   
> ImmutableSet already has an 'isEmpty()' method and I have never  
> really seen a case where "size()" needs to be explicitly  
> calculated.  If you need size() itself, however, this seems like a  
> perfectly valid addition.

I agree, "size" should also return 'unsigned' not int.

-Chris



More information about the llvm-dev mailing list