Unify the two copies of template_util.h
This patch basically deletes webrtc/base/template_util.h (which is the
more outdated copy, although there are only cosmetical differences)
and moves webrtc/system_wrappers/source/template_util.h to take its
place.
The reunified header uses the rtc namespace like the old
webrtc/base/template_util.h, rather than the webrtc namespace like
webrtc/system_wrappers/source/template_util.h.
R=aluebs@webrtc.org, andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/38579004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8050 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/base/template_util.h b/webrtc/base/template_util.h
index f0bf39c..86e541d 100644
--- a/webrtc/base/template_util.h
+++ b/webrtc/base/template_util.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 The WebRTC Project Authors. All rights reserved.
+ * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+// Borrowed from Chromium's src/base/template_util.h.
+
#ifndef WEBRTC_BASE_TEMPLATE_UTIL_H_
#define WEBRTC_BASE_TEMPLATE_UTIL_H_
@@ -15,7 +17,7 @@
namespace rtc {
-// template definitions from tr1
+// Template definitions from tr1.
template<class T, T v>
struct integral_constant {
@@ -33,7 +35,7 @@
template <class T> struct is_pointer<T*> : true_type {};
template <class T, class U> struct is_same : public false_type {};
-template <class T> struct is_same<T,T> : true_type {};
+template <class T> struct is_same<T, T> : true_type {};
template<class> struct is_array : public false_type {};
template<class T, size_t n> struct is_array<T[n]> : public true_type {};