| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Template metaprogramming utility functions. | 5 // Template metaprogramming utility functions. |
| 6 // | 6 // |
| 7 // This code is compiled directly on many platforms, including client | 7 // This code is compiled directly on many platforms, including client |
| 8 // platforms like Windows, Mac, and embedded systems. Before making | 8 // platforms like Windows, Mac, and embedded systems. Before making |
| 9 // any changes here, make sure that you're not breaking any platforms. | 9 // any changes here, make sure that you're not breaking any platforms. |
| 10 // | 10 // |
| 11 // The names choosen here reflect those used in tr1 and the boost::mpl | 11 // The names choosen here reflect those used in tr1 and the boost::mpl |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // or_ is a template || operator. | 87 // or_ is a template || operator. |
| 88 // or_<A, B>::value evaluates "A::value || B::value". | 88 // or_<A, B>::value evaluates "A::value || B::value". |
| 89 template<typename A, typename B> | 89 template<typename A, typename B> |
| 90 struct or_ : public integral_constant<bool, (A::value || B::value)> { | 90 struct or_ : public integral_constant<bool, (A::value || B::value)> { |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 | 93 |
| 94 } // Close namespace base | 94 } // Close namespace base |
| 95 | 95 |
| 96 #endif // BASE_TEMPLATE_UTIL_H_ | 96 #endif // BASE_TEMPLATE_UTIL_H_ |
| OLD | NEW |