DescriptionWTF HashSet: Implement move semantics for values.
This is a follow-up of the following patch where move semantics for
HashMap values were implemented:
https://codereview.chromium.org/1764973002/
This patch basically does the same thing. At this time, we don't have to
use the "Extra" part of hash table translators, since HashSet saves only
the keys.
The overload of add<Translator>(...) is renamed to addWithTranslator,
because (1) the function signatures of normal add() and translator add()
are pretty confusing, and (2) add<Translator>() version is rarely used.
I left addWithTranslator without move semantics, as I was not sure if
we should do that.
StringHash needs some modification to resolve overload ambiguities arose
from string literals.
BUG=567139, 582349
Committed: https://crrev.com/01875a5b228e8d84bc92db4b634df054efcf9216
Cr-Commit-Position: refs/heads/master@{#381403}
Patch Set 1 #Patch Set 2 : Rebase. #
Messages
Total messages: 26 (14 generated)
|