Lines Matching defs:ptr
740 void PrintSmartPointer(const Ptr& ptr, std::ostream* os, char) {
741 if (ptr == nullptr) {
745 *os << "(" << (VoidifyPointer)(ptr.get()) << ")";
751 void PrintSmartPointer(const Ptr& ptr, std::ostream* os, int) {
752 if (ptr == nullptr) {
755 *os << "(ptr = " << (VoidifyPointer)(ptr.get()) << ", value = ";
756 UniversalPrinter<T>::Print(*ptr, os);
762 void PrintTo(const std::unique_ptr<T, D>& ptr, std::ostream* os) {
763 (PrintSmartPointer<T>)(ptr, os, 0);
767 void PrintTo(const std::shared_ptr<T>& ptr, std::ostream* os) {
768 (PrintSmartPointer<T>)(ptr, os, 0);