| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 362 |
| 363 // Convenience template wrapping the NeedsTracingLazily template in | 363 // Convenience template wrapping the NeedsTracingLazily template in |
| 364 // Collection Traits. It helps make the code more readable. | 364 // Collection Traits. It helps make the code more readable. |
| 365 template<typename Traits> | 365 template<typename Traits> |
| 366 class ShouldBeTraced { | 366 class ShouldBeTraced { |
| 367 public: | 367 public: |
| 368 static const bool value = Traits::template NeedsTracingLazily<>::value; | 368 static const bool value = Traits::template NeedsTracingLazily<>::value; |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 template<typename T, typename U> | 371 template<typename T, typename U> |
| 372 struct NeedsTracing<std::pair<T, U> > { | 372 struct NeedsTracing<std::pair<T, U>> { |
| 373 static const bool value = NeedsTracing<T>::value || NeedsTracing<U>::value |
| IsWeak<T>::value || IsWeak<U>::value; | 373 static const bool value = NeedsTracing<T>::value || NeedsTracing<U>::value |
| IsWeak<T>::value || IsWeak<U>::value; |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 } // namespace WTF | 376 } // namespace WTF |
| 377 | 377 |
| 378 #endif // TypeTraits_h | 378 #endif // TypeTraits_h |
| OLD | NEW |