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

Side by Side Diff: base/containers/queue.h

Issue 2898213003: Add skeleton circular queue file.
Patch Set: Fix merge 2 Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « base/containers/circular_deque_unittest.cc ('k') | base/containers/vector_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_CONTAINERS_QUEUE_H_
6 #define BASE_CONTAINERS_QUEUE_H_
7
8 #include <queue>
9
10 #include "base/containers/circular_deque.h"
11
12 namespace base {
13
14 // Provides a definition of base::queue that's like std::queue but uses a
15 // base::circular_queue instead. Since std::queue is just a wraper for an
16 // underlying type, we can just provide a typedef for it that defaults to the
17 // base circular_deque.
18 template <class T, class Container = circular_deque<T>>
19 using queue = std::queue<T, Container>;
20
21 } // namespace base
22
23 #endif // BASE_CONTAINERS_QUEUE_H_
OLDNEW
« no previous file with comments | « base/containers/circular_deque_unittest.cc ('k') | base/containers/vector_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698