tesseract v5.3.3.20231005
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 179 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 181 of file gtest-printers.h.

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

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