Chromium Code Reviews| 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"); |