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

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

Issue 2457163002: WTF/std normalization: replace WTF::Vector::emplaceAppend with ::emplace_back (Closed)
Patch Set: rebase Created 4 years, 1 month 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
Index: third_party/WebKit/Source/wtf/Vector.h
diff --git a/third_party/WebKit/Source/wtf/Vector.h b/third_party/WebKit/Source/wtf/Vector.h
index 90ef104e75133713348f9a6509b6bac720044ba6..dc3a0ceb3ff3d7f856b4eefb4246dd7832f3132d 100644
--- a/third_party/WebKit/Source/wtf/Vector.h
+++ b/third_party/WebKit/Source/wtf/Vector.h
@@ -946,7 +946,7 @@ class Vector
template <typename U>
void append(U&&);
template <typename... Args>
- void emplaceAppend(Args&&...);
+ void emplace_back(Args&&...);
template <typename U>
void uncheckedAppend(U&& val);
template <typename U, size_t otherCapacity, typename V>
@@ -1396,7 +1396,7 @@ ALWAYS_INLINE void Vector<T, inlineCapacity, Allocator>::append(U&& val) {
template <typename T, size_t inlineCapacity, typename Allocator>
template <typename... Args>
-ALWAYS_INLINE void Vector<T, inlineCapacity, Allocator>::emplaceAppend(
+ALWAYS_INLINE void Vector<T, inlineCapacity, Allocator>::emplace_back(
esprehn 2016/11/04 23:49:34 std emplace_back returns a reference, should this
Args&&... args) {
static_assert(sizeof...(Args), "grow() must be called instead");
static_assert(sizeof...(Args) != 1, "append() must be called instead");

Powered by Google App Engine
This is Rietveld 408576698