Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: third_party/WebKit/Source/wtf/ListHashSet.h

Issue 2688893002: Migrate WTF::HashSet::add() to ::insert() [continued] (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSet.h
diff --git a/third_party/WebKit/Source/wtf/ListHashSet.h b/third_party/WebKit/Source/wtf/ListHashSet.h
index b3676a477f88693621c7d9f55a4198b3e26009e6..872934492219a62fdfc0fb8844d366ac2a25be95 100644
--- a/third_party/WebKit/Source/wtf/ListHashSet.h
+++ b/third_party/WebKit/Source/wtf/ListHashSet.h
@@ -189,6 +189,8 @@ class ListHashSet
// bool that is true if an new entry was added.
template <typename IncomingValueType>
AddResult add(IncomingValueType&&);
+ template <typename IncomingValueType>
+ AddResult insert(IncomingValueType&&);
// Same as add() except that the return value is an iterator. Useful in
// cases where it's needed to have the same return value as find() and where
@@ -931,6 +933,13 @@ ListHashSet<T, inlineCapacity, U, V>::add(IncomingValueType&& value) {
template <typename T, size_t inlineCapacity, typename U, typename V>
template <typename IncomingValueType>
+typename ListHashSet<T, inlineCapacity, U, V>::AddResult
+ListHashSet<T, inlineCapacity, U, V>::insert(IncomingValueType&& value) {
+ return add(value);
+}
+
+template <typename T, size_t inlineCapacity, typename U, typename V>
+template <typename IncomingValueType>
typename ListHashSet<T, inlineCapacity, U, V>::iterator
ListHashSet<T, inlineCapacity, U, V>::addReturnIterator(
IncomingValueType&& value) {
« no previous file with comments | « third_party/WebKit/Source/wtf/LinkedHashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698