OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 }; | 217 }; |
218 | 218 |
219 template <typename T, template <class V> class OuterTemplate> struct RemoveT
emplate { | 219 template <typename T, template <class V> class OuterTemplate> struct RemoveT
emplate { |
220 typedef T Type; | 220 typedef T Type; |
221 }; | 221 }; |
222 | 222 |
223 template <typename T, template <class V> class OuterTemplate> struct RemoveT
emplate<OuterTemplate<T>, OuterTemplate> { | 223 template <typename T, template <class V> class OuterTemplate> struct RemoveT
emplate<OuterTemplate<T>, OuterTemplate> { |
224 typedef T Type; | 224 typedef T Type; |
225 }; | 225 }; |
226 | 226 |
| 227 template <typename T, template <class V, class W> class OuterTemplate> struc
t RemoveTemplate2 { |
| 228 typedef T Type; |
| 229 }; |
| 230 |
| 231 template <typename T, template <class V, class W> class OuterTemplate> struc
t RemoveTemplate2<OuterTemplate<T, T>, OuterTemplate> { |
| 232 typedef T Type; |
| 233 }; |
| 234 |
227 template <typename T> struct RemoveConst { | 235 template <typename T> struct RemoveConst { |
228 typedef T Type; | 236 typedef T Type; |
229 }; | 237 }; |
230 | 238 |
231 template <typename T> struct RemoveConst<const T> { | 239 template <typename T> struct RemoveConst<const T> { |
232 typedef T Type; | 240 typedef T Type; |
233 }; | 241 }; |
234 | 242 |
235 template <typename T> struct RemoveVolatile { | 243 template <typename T> struct RemoveVolatile { |
236 typedef T Type; | 244 typedef T Type; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // Collection Traits. It helps make the code more readable. | 326 // Collection Traits. It helps make the code more readable. |
319 template<typename Traits> | 327 template<typename Traits> |
320 class ShouldBeTraced { | 328 class ShouldBeTraced { |
321 public: | 329 public: |
322 static const bool value = Traits::template NeedsTracingLazily<>::value; | 330 static const bool value = Traits::template NeedsTracingLazily<>::value; |
323 }; | 331 }; |
324 | 332 |
325 } // namespace WTF | 333 } // namespace WTF |
326 | 334 |
327 #endif // TypeTraits_h | 335 #endif // TypeTraits_h |
OLD | NEW |