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

Unified Diff: base/trace_event/heap_profiler_allocation_register.h

Issue 2792183003: Remove base::is_trivially_destructible and use the standard library. (Closed)
Patch Set: triviallydestruct: rm-tests Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/template_util_unittest.cc ('k') | base/trace_event/memory_usage_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/heap_profiler_allocation_register.h
diff --git a/base/trace_event/heap_profiler_allocation_register.h b/base/trace_event/heap_profiler_allocation_register.h
index 6d63923f4c164e7a51a2eaf6686d94a87de1f4a9..74dbe7daf2d6fef97211ab59680ea0bc15f8e32b 100644
--- a/base/trace_event/heap_profiler_allocation_register.h
+++ b/base/trace_event/heap_profiler_allocation_register.h
@@ -8,13 +8,13 @@
#include <stddef.h>
#include <stdint.h>
+#include <type_traits>
#include <utility>
#include "base/bits.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/process/process_metrics.h"
-#include "base/template_util.h"
#include "base/trace_event/heap_profiler_allocation_context.h"
#include "build/build_config.h"
@@ -39,9 +39,10 @@ void FreeGuardedVirtualMemory(void* address, size_t allocated_size);
template <size_t NumBuckets, class Key, class Value, class KeyHasher>
class FixedHashMap {
// To keep things simple we don't call destructors.
- static_assert(is_trivially_destructible<Key>::value &&
- is_trivially_destructible<Value>::value,
+ static_assert(std::is_trivially_destructible<Key>::value &&
+ std::is_trivially_destructible<Value>::value,
"Key and Value shouldn't have destructors");
+
public:
using KVPair = std::pair<const Key, Value>;
« no previous file with comments | « base/template_util_unittest.cc ('k') | base/trace_event/memory_usage_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698