Lines Matching refs:To

114 // To gcc,
175 // LosslessArithmeticConvertibleImpl<kFromKind, From, kToKind, To>::value
177 // arithmetic type To.
179 // It's the user's responsibility to ensure that both From and To are
182 // From, and kToKind is the kind of To; the value is
184 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To>
193 template <typename To>
194 struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To>
198 template <typename To>
199 struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To>
209 template <typename From, typename To>
210 struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To>
214 ((sizeof(From) < sizeof(To)) &&
215 (!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) ||
217 ((sizeof(From) == sizeof(To)) &&
218 (GMOCK_IS_SIGNED_(From) == GMOCK_IS_SIGNED_(To)))> {}; // NOLINT
224 template <typename From, typename To>
225 struct LosslessArithmeticConvertibleImpl<kInteger, From, kFloatingPoint, To>
234 template <typename From, typename To>
235 struct LosslessArithmeticConvertibleImpl<kFloatingPoint, From, kInteger, To>
240 template <typename From, typename To>
242 kFloatingPoint, From, kFloatingPoint, To>
243 : public bool_constant<sizeof(From) <= sizeof(To)> {}; // NOLINT
245 // LosslessArithmeticConvertible<From, To>::value is true iff arithmetic
246 // type From can be losslessly converted to arithmetic type To.
248 // It's the user's responsibility to ensure that both From and To are
252 template <typename From, typename To>
255 GMOCK_KIND_OF_(From), From, GMOCK_KIND_OF_(To), To> {}; // NOLINT