tesseract v5.3.3.20231005
testing::internal::UniversalPrinter< T & > Class Template Reference

#include <gtest-printers.h>

Static Public Member Functions

static void Print (const T &value, ::std::ostream *os)
 

Detailed Description

template<typename T>
class testing::internal::UniversalPrinter< T & >

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

Member Function Documentation

◆ Print()

template<typename T >
static void testing::internal::UniversalPrinter< T & >::Print ( const T &  value,
::std::ostream *  os 
)
inlinestatic

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

845 {
846 // Prints the address of the value. We use reinterpret_cast here
847 // as static_cast doesn't compile when T is a function type.
848 *os << "@" << reinterpret_cast<const void*>(&value) << " ";
849
850 // Then prints the value itself.
852 }
int value
void UniversalPrint(const T &value, ::std::ostream *os)

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