[LLVMdev] Some enhancements to ImmutableSet and FoldingSet
Ben Laurie
benl at google.com
Wed Feb 11 20:14:04 PST 2009
On Wed, Feb 11, 2009 at 8:24 PM, Ted Kremenek <kremenek at apple.com> 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 need to check for size() == 1 (in order to test whether a range set
has a single possible value).
More information about the llvm-dev
mailing list