OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ |
7 | 7 |
8 namespace mojo { | 8 namespace mojo { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
11 template <class T, T v> | 11 template <class T, T v> |
12 struct IntegralConstant { | 12 struct IntegralConstant { |
13 static const T value = v; | 13 static const T value = v; |
14 }; | 14 }; |
15 | 15 |
16 template <class T, T v> | 16 template <class T, T v> |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 }; | 120 }; |
121 | 121 |
122 template <typename T, typename F> | 122 template <typename T, typename F> |
123 struct Conditional<false, T, F> { | 123 struct Conditional<false, T, F> { |
124 typedef F type; | 124 typedef F type; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace internal | 127 } // namespace internal |
128 } // namespace mojo | 128 } // namespace mojo |
129 | 129 |
130 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ | 130 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_TEMPLATE_UTIL_H_ |
OLD | NEW |