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

Side by Side Diff: Source/wtf/TypeTraits.h

Issue 835953003: Fix template angle bracket syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « Source/wtf/StreamBuffer.h ('k') | Source/wtf/TypeTraits.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/wtf/StreamBuffer.h ('k') | Source/wtf/TypeTraits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698