max_load_factor should rehash

8 views
Skip to first unread message

ShaunJ

unread,
Sep 30, 2009, 6:54:03 PM9/30/09
to google-sparsehash
> The second member function sets the maximum load factor. If this value is less than the current load factor, the unordered multiset is rehashed.

according to this documentation:
http://publib.boulder.ibm.com/infocenter/comphelp/v9v111/index.jsp?topic=/com.ibm.xlcpp9.aix.doc/standlib/stl_unordered_set.htm

Cheers,
Shaun

Craig Silverstein

unread,
Oct 1, 2009, 12:34:15 PM10/1/09
to google-s...@googlegroups.com
} > The second member function sets the maximum load factor. If this
} value is less than the current load factor, the unordered multiset
} is rehashed.

Thank you for the email. I can't tell if this is intended to be a
normative description of the API, or just an implementation
description of the AIX hash implementation. The microsoft docs say
nothing about rehashing:
http://msdn.microsoft.com/en-us/library/bb982704.aspx

max_load_factor itself is a tr1 class, so I think it makes sense to
wait for the tr1 standards doc to come out, and see what it says,
before making any changes. The IBM doc smells like an implementation
description to me, but I guess we'll see in time...

craig

ShaunJ

unread,
Oct 1, 2009, 12:55:28 PM10/1/09
to google-sparsehash
Okay. Thanks, Craig.
Reply all
Reply to author
Forward
0 new messages