| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 template <typename T> struct RemoveReference { | 271 template <typename T> struct RemoveReference { |
| 272 typedef T Type; | 272 typedef T Type; |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 template <typename T> struct RemoveReference<T&> { | 275 template <typename T> struct RemoveReference<T&> { |
| 276 typedef T Type; | 276 typedef T Type; |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 template <typename T> struct RemoveReference<T&&> { |
| 280 typedef T Type; |
| 281 }; |
| 282 |
| 279 template <typename T> struct RemoveExtent { | 283 template <typename T> struct RemoveExtent { |
| 280 typedef T Type; | 284 typedef T Type; |
| 281 }; | 285 }; |
| 282 | 286 |
| 283 template <typename T> struct RemoveExtent<T[]> { | 287 template <typename T> struct RemoveExtent<T[]> { |
| 284 typedef T Type; | 288 typedef T Type; |
| 285 }; | 289 }; |
| 286 | 290 |
| 287 template <typename T, size_t N> struct RemoveExtent<T[N]> { | 291 template <typename T, size_t N> struct RemoveExtent<T[N]> { |
| 288 typedef T Type; | 292 typedef T Type; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 }; | 338 }; |
| 335 | 339 |
| 336 template<typename T, typename U> | 340 template<typename T, typename U> |
| 337 struct NeedsTracing<std::pair<T, U>> { | 341 struct NeedsTracing<std::pair<T, U>> { |
| 338 static const bool value = NeedsTracing<T>::value || NeedsTracing<U>::value |
| IsWeak<T>::value || IsWeak<U>::value; | 342 static const bool value = NeedsTracing<T>::value || NeedsTracing<U>::value |
| IsWeak<T>::value || IsWeak<U>::value; |
| 339 }; | 343 }; |
| 340 | 344 |
| 341 } // namespace WTF | 345 } // namespace WTF |
| 342 | 346 |
| 343 #endif // TypeTraits_h | 347 #endif // TypeTraits_h |
| OLD | NEW |