| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef WTF_Deque_h | 30 #ifndef WTF_Deque_h |
| 31 #define WTF_Deque_h | 31 #define WTF_Deque_h |
| 32 | 32 |
| 33 // FIXME: Could move what Vector and Deque share into a separate file. | 33 // FIXME: Could move what Vector and Deque share into a separate file. |
| 34 // Deque doesn't actually use Vector. | 34 // Deque doesn't actually use Vector. |
| 35 | 35 |
| 36 #include <iterator> |
| 37 #include "platform/wtf/Allocator.h" |
| 36 #include "platform/wtf/Vector.h" | 38 #include "platform/wtf/Vector.h" |
| 37 #include <iterator> | |
| 38 | 39 |
| 39 namespace WTF { | 40 namespace WTF { |
| 40 | 41 |
| 41 template <typename T, size_t inlineCapacity, typename Allocator> | 42 template <typename T, size_t inlineCapacity, typename Allocator> |
| 42 class DequeIteratorBase; | 43 class DequeIteratorBase; |
| 43 template <typename T, size_t inlineCapacity, typename Allocator> | 44 template <typename T, size_t inlineCapacity, typename Allocator> |
| 44 class DequeIterator; | 45 class DequeIterator; |
| 45 template <typename T, size_t inlineCapacity, typename Allocator> | 46 template <typename T, size_t inlineCapacity, typename Allocator> |
| 46 class DequeConstIterator; | 47 class DequeConstIterator; |
| 47 | 48 |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 inline void swap(Deque<T, inlineCapacity, Allocator>& a, | 697 inline void swap(Deque<T, inlineCapacity, Allocator>& a, |
| 697 Deque<T, inlineCapacity, Allocator>& b) { | 698 Deque<T, inlineCapacity, Allocator>& b) { |
| 698 a.Swap(b); | 699 a.Swap(b); |
| 699 } | 700 } |
| 700 | 701 |
| 701 } // namespace WTF | 702 } // namespace WTF |
| 702 | 703 |
| 703 using WTF::Deque; | 704 using WTF::Deque; |
| 704 | 705 |
| 705 #endif // WTF_Deque_h | 706 #endif // WTF_Deque_h |
| OLD | NEW |