[Click] Hashmap size: signed int?
Eddie Kohler
kohler at cs.ucla.edu
Wed Jun 21 02:33:50 EDT 2006
A good question. Now it has an unsigned.
I also looked into Vector::size(). That should also return size_t; but too
much code depends on the idiom "for (int i = 0; i < v.size(); i++)" to make
that change right now.
Eddie
Bart Braem wrote:
> Hello,
>
> A small question: why does hashmap have a signed int as the returntype for the
> size function? I noticed this because I got compiler warnings in code where I
> compared my unsigned ints with the size results.
>
> Regards,
> Bart
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list