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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/TerminatedArray.h

Issue 2767153004: Move files in wtf/ to platform/wtf/ (Part 12). (Closed)
Patch Set: Rebase. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef TerminatedArray_h 4 #ifndef TerminatedArray_h
5 #define TerminatedArray_h 5 #define TerminatedArray_h
6 6
7 #include "wtf/Allocator.h" 7 #include "platform/wtf/Allocator.h"
8 #include "wtf/PtrUtil.h" 8 #include "platform/wtf/PtrUtil.h"
9 #include "wtf/VectorTraits.h" 9 #include "platform/wtf/VectorTraits.h"
10 #include "wtf/allocator/Partitions.h" 10 #include "platform/wtf/allocator/Partitions.h"
11 #include <memory> 11 #include <memory>
12 12
13 namespace WTF { 13 namespace WTF {
14 14
15 // TerminatedArray<T> represents a sequence of elements of type T in which each 15 // TerminatedArray<T> represents a sequence of elements of type T in which each
16 // element knows whether it is the last element in the sequence or not. For this 16 // element knows whether it is the last element in the sequence or not. For this
17 // check type T must provide isLastInArray method. 17 // check type T must provide isLastInArray method.
18 // TerminatedArray<T> can only be constructed by TerminatedArrayBuilder<T>. 18 // TerminatedArray<T> can only be constructed by TerminatedArrayBuilder<T>.
19 template <typename T> 19 template <typename T>
20 class TerminatedArray { 20 class TerminatedArray {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 template <typename, template <typename> class> 115 template <typename, template <typename> class>
116 friend class TerminatedArrayBuilder; 116 friend class TerminatedArrayBuilder;
117 }; 117 };
118 118
119 } // namespace WTF 119 } // namespace WTF
120 120
121 using WTF::TerminatedArray; 121 using WTF::TerminatedArray;
122 122
123 #endif // TerminatedArray_h 123 #endif // TerminatedArray_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/StackUtil.cpp ('k') | third_party/WebKit/Source/platform/wtf/TerminatedArrayBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698