| OLD | NEW |
| 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 SKY_ENGINE_WTF_TERMINATEDARRAY_H_ |
| 5 #define TerminatedArray_h | 5 #define SKY_ENGINE_WTF_TERMINATEDARRAY_H_ |
| 6 | 6 |
| 7 #include "sky/engine/wtf/FastAllocBase.h" | 7 #include "sky/engine/wtf/FastAllocBase.h" |
| 8 #include "sky/engine/wtf/OwnPtr.h" | 8 #include "sky/engine/wtf/OwnPtr.h" |
| 9 | 9 |
| 10 namespace WTF { | 10 namespace WTF { |
| 11 | 11 |
| 12 // TerminatedArray<T> represents a sequence of elements of type T in which each | 12 // TerminatedArray<T> represents a sequence of elements of type T in which each |
| 13 // element knows whether it is the last element in the sequence or not. For this | 13 // element knows whether it is the last element in the sequence or not. For this |
| 14 // check type T must provide isLastInArray method. | 14 // check type T must provide isLastInArray method. |
| 15 // TerminatedArray<T> can only be constructed by TerminatedArrayBuilder<T>. | 15 // TerminatedArray<T> can only be constructed by TerminatedArrayBuilder<T>. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // TerminatedArrayBuilder by pointer casting. | 88 // TerminatedArrayBuilder by pointer casting. |
| 89 TerminatedArray(); | 89 TerminatedArray(); |
| 90 | 90 |
| 91 template<typename, template <typename> class> friend class TerminatedArrayBu
ilder; | 91 template<typename, template <typename> class> friend class TerminatedArrayBu
ilder; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace WTF | 94 } // namespace WTF |
| 95 | 95 |
| 96 using WTF::TerminatedArray; | 96 using WTF::TerminatedArray; |
| 97 | 97 |
| 98 #endif // TerminatedArray_h | 98 #endif // SKY_ENGINE_WTF_TERMINATEDARRAY_H_ |
| OLD | NEW |