Xmipp  v3.23.11-Nereus
Static Public Member Functions | List of all members
testing::internal::PointerPrinter Struct Reference

#include <gtest-printers.h>

Static Public Member Functions

template<typename T >
static void PrintValue (T *p, ::std::ostream *os)
 

Detailed Description

Definition at line 181 of file gtest-printers.h.

Member Function Documentation

◆ PrintValue()

template<typename T >
static void testing::internal::PointerPrinter::PrintValue ( T *  p,
::std::ostream *  os 
)
inlinestatic

Definition at line 183 of file gtest-printers.h.

183  {
184  if (p == nullptr) {
185  *os << "NULL";
186  } else {
187  // T is not a function type. We just call << to print p,
188  // relying on ADL to pick up user-defined << for their pointer
189  // types, if any.
190  *os << p;
191  }
192  }

The documentation for this struct was generated from the following file: