| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_TEMPLATE_UTIL_H_ | 5 #ifndef BASE_TEMPLATE_UTIL_H_ |
| 6 #define BASE_TEMPLATE_UTIL_H_ | 6 #define BASE_TEMPLATE_UTIL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <cstddef> // For size_t. | 8 #include <cstddef> // For size_t. |
| 10 | 9 |
| 11 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 12 | 11 |
| 13 namespace base { | 12 namespace base { |
| 14 | 13 |
| 15 // template definitions from tr1 | 14 // template definitions from tr1 |
| 16 | 15 |
| 17 template<class T, T v> | 16 template<class T, T v> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 template <typename T> | 99 template <typename T> |
| 101 struct is_class | 100 struct is_class |
| 102 : integral_constant<bool, | 101 : integral_constant<bool, |
| 103 sizeof(internal::IsClassHelper::Test<T>(0)) == | 102 sizeof(internal::IsClassHelper::Test<T>(0)) == |
| 104 sizeof(internal::YesType)> { | 103 sizeof(internal::YesType)> { |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 } // namespace base | 106 } // namespace base |
| 108 | 107 |
| 109 #endif // BASE_TEMPLATE_UTIL_H_ | 108 #endif // BASE_TEMPLATE_UTIL_H_ |
| OLD | NEW |