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

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

Issue 2746763009: Migrate WTF::Deque::prepend() to ::push_front() (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/Source/wtf/Deque.h
diff --git a/third_party/WebKit/Source/wtf/Deque.h b/third_party/WebKit/Source/wtf/Deque.h
index aaed1c94fb027fe3ab811d1ff8c96fb09c2ef1eb..bb7aa0a7d9f83d04031a68a85992390ab5b73d6d 100644
--- a/third_party/WebKit/Source/wtf/Deque.h
+++ b/third_party/WebKit/Source/wtf/Deque.h
@@ -126,17 +126,13 @@ class Deque : public ConditionalDestructor<Deque<T, INLINE_CAPACITY, Allocator>,
const T& operator[](size_t i) const { return at(i); }
template <typename U>
- void prepend(U&&);
+ void push_front(U&&);
void erase(iterator&);
void erase(const_iterator&);
// STL compatibility.
template <typename U>
void push_back(U&&);
- template <typename U>
- void push_front(U&& u) {
- prepend(std::forward<U>(u));
- }
void pop_back();
void pop_front();
bool empty() const { return isEmpty(); }
@@ -506,7 +502,7 @@ inline void Deque<T, inlineCapacity, Allocator>::push_back(U&& value) {
template <typename T, size_t inlineCapacity, typename Allocator>
template <typename U>
-inline void Deque<T, inlineCapacity, Allocator>::prepend(U&& value) {
+inline void Deque<T, inlineCapacity, Allocator>::push_front(U&& value) {
expandCapacityIfNeeded();
if (!m_start)
m_start = m_buffer.capacity() - 1;
« no previous file with comments | « third_party/WebKit/Source/platform/text/SegmentedString.cpp ('k') | third_party/WebKit/Source/wtf/DequeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698