Searched defs:implicit_cast (Results 1 - 2 of 2) sorted by relevance

/external/chromium/base/
H A Dbasictypes.h166 // Use implicit_cast as a safe version of static_cast or const_cast
170 // When you use implicit_cast, the compiler checks that the cast is safe.
176 // implicit_cast is the same as for static_cast etc.:
178 // implicit_cast<ToType>(expr)
180 // implicit_cast would have been part of the C++ standard library,
184 inline To implicit_cast(From const &f) { function
/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.h263 // Use implicit_cast as a safe version of static_cast or const_cast
267 // When you use implicit_cast, the compiler checks that the cast is safe.
273 // implicit_cast is the same as for static_cast etc.:
275 // implicit_cast<ToType>(expr)
277 // implicit_cast would have been part of the C++ standard library,
281 inline To implicit_cast(From const &f) { function in namespace:google::protobuf::internal
286 // SuperclassOfFoo), it's fine to use implicit_cast<>, since upcasts
310 implicit_cast<From*, To>(0);
323 using internal::implicit_cast;

Completed in 40 milliseconds