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

Side by Side Diff: third_party/protobuf/src/google/protobuf/stubs/type_traits.h

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 template<> struct is_integral<__wchar_t> : true_type { }; 132 template<> struct is_integral<__wchar_t> : true_type { };
133 #else 133 #else
134 template<> struct is_integral<wchar_t> : true_type { }; 134 template<> struct is_integral<wchar_t> : true_type { };
135 #endif 135 #endif
136 template<> struct is_integral<short> : true_type { }; 136 template<> struct is_integral<short> : true_type { };
137 template<> struct is_integral<unsigned short> : true_type { }; 137 template<> struct is_integral<unsigned short> : true_type { };
138 template<> struct is_integral<int> : true_type { }; 138 template<> struct is_integral<int> : true_type { };
139 template<> struct is_integral<unsigned int> : true_type { }; 139 template<> struct is_integral<unsigned int> : true_type { };
140 template<> struct is_integral<long> : true_type { }; 140 template<> struct is_integral<long> : true_type { };
141 template<> struct is_integral<unsigned long> : true_type { }; 141 template<> struct is_integral<unsigned long> : true_type { };
142 #ifdef HAVE_LONG_LONG 142 #if defined(HAVE_LONG_LONG) || defined(_MSC_VER)
143 template<> struct is_integral<long long> : true_type { }; 143 template<> struct is_integral<long long> : true_type { };
144 template<> struct is_integral<unsigned long long> : true_type { }; 144 template<> struct is_integral<unsigned long long> : true_type { };
145 #endif 145 #endif
146 template <class T> struct is_integral<const T> : is_integral<T> { }; 146 template <class T> struct is_integral<const T> : is_integral<T> { };
147 template <class T> struct is_integral<volatile T> : is_integral<T> { }; 147 template <class T> struct is_integral<volatile T> : is_integral<T> { };
148 template <class T> struct is_integral<const volatile T> : is_integral<T> { }; 148 template <class T> struct is_integral<const volatile T> : is_integral<T> { };
149 149
150 // is_floating_point is false except for the built-in floating-point types. 150 // is_floating_point is false except for the built-in floating-point types.
151 // A cv-qualified type is integral if and only if the underlying type is. 151 // A cv-qualified type is integral if and only if the underlying type is.
152 template <class T> struct is_floating_point : false_type { }; 152 template <class T> struct is_floating_point : false_type { };
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 : integral_constant<bool, 355 : integral_constant<bool,
356 type_traits_internal::ConvertHelper<From, To>::value> { 356 type_traits_internal::ConvertHelper<From, To>::value> {
357 }; 357 };
358 #endif 358 #endif
359 359
360 } // namespace internal 360 } // namespace internal
361 } // namespace protobuf 361 } // namespace protobuf
362 } // namespace google 362 } // namespace google
363 363
364 #endif // GOOGLE_PROTOBUF_TYPE_TRAITS_H_ 364 #endif // GOOGLE_PROTOBUF_TYPE_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698