This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.
Section: 24.2.8 [unord.req], 24.5 [unord] Status: NAD Submitter: Matt Austern Opened: 2009-08-10 Last modified: 2016-01-28
Priority: Not Prioritized
View other active issues in [unord.req].
View all other issues in [unord.req].
View all issues with NAD status.
The unordered associative container requirements table specifies that a.set_max_load_factor(z) has return type void. However, there is a useful piece of information to return: the previous value. Users who don't need it can always ignore it.
[ 2010 Rapperswil: ]
The benefit seems minor, while breaking with the getter/setter idiom these overloads support. Move to Tentatively NAD.
[ Moved to NAD at 2010-11 Batavia ]
In the unordered associative container requirements table, change:
Table 87 — Unordered associative container requirements (in addition to container) Expression Return type Assertion/note pre-/post-condition Complexity a.max_load_factor(z) void Pre: z shall be positive. Changes the container's maximum loadload factor, using z as a hint. constant
Change the return type of set_max_load_factor in the class synopses in 24.5.4 [unord.map], 24.5.5 [unord.multimap], 24.5.6 [unord.set], and 24.5.7 [unord.multiset].
If issue 1188 is also accepted, make the same changes for min_load_factor.