2 ms·
Kinda makes you wonder why those decisions (to provide bucket iteration, bucket iterators) were made. It's hard to picture a use for such a feature that makes i
by asdfasgasdgasdg 8y ago
Kinda makes you wonder why those decisions (to provide bucket iteration, bucket iterators) were made. It's hard to picture a use for such a feature that makes it worthy of adding constraints to a standard container. I would love it if someone could provide some insight into the decision process that led to this state of affairs.
- yoklov 8y agoIIRC boost::unordered_map/set offered those, and I'm pretty sure the API was taken more or less verbatim from that. I suspect some desire of compatibility was to blame, but don't know. Hopefully in the future mistakes of these sort will be avoided, but that might be asking for too much (certainly std::optional opted to break compat with boost's (`std::optional<T&>` is disallowed) so there's some hope).
- mehrdadn 8y agoOn the other hand it makes you think twice about using hashtables, which IMHO is a good thing... :-)