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

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

Issue 216723002: Make sure all destructors are called in HeapHashMap and HeapHashSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR feedback Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/wtf/HashTable.h ('k') | no next file » | 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 template<typename V> static NoType checkHasTraceMethod(...); 299 template<typename V> static NoType checkHasTraceMethod(...);
300 public: 300 public:
301 static const bool value = sizeof(YesType) == sizeof(checkHasTraceMethod<T>(0 )); 301 static const bool value = sizeof(YesType) == sizeof(checkHasTraceMethod<T>(0 ));
302 }; 302 };
303 303
304 // Convenience template wrapping the NeedsTracingLazily template in 304 // Convenience template wrapping the NeedsTracingLazily template in
305 // Collection Traits. It helps make the code more readable. 305 // Collection Traits. It helps make the code more readable.
306 template<typename Traits> 306 template<typename Traits>
307 class ShouldBeTraced { 307 class ShouldBeTraced {
308 public: 308 public:
309 static const bool value = Traits::template NeedsTracingLazily<void>::value; 309 static const bool value = Traits::template NeedsTracingLazily<>::value;
310 }; 310 };
311 311
312 } // namespace WTF 312 } // namespace WTF
313 313
314 #endif // TypeTraits_h 314 #endif // TypeTraits_h
OLDNEW
« no previous file with comments | « Source/wtf/HashTable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698