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

#include <gtest-printers.h>

Inheritance diagram for testing::internal::UniversalPrinter< T >:
testing::internal::UniversalPrinter< const T >

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 673 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 682 of file gtest-printers.h.

682 {
683 // By default, ::testing::internal::PrintTo() is used for printing
684 // the value.
685 //
686 // Thanks to Koenig look-up, if T is a class and has its own
687 // PrintTo() function defined in its namespace, that function will
688 // be visible here. Since it is more specific than the generic ones
689 // in ::testing::internal, it will be picked by the compiler in the
690 // following statement - exactly what we want.
691 PrintTo(value, os);
692 }
int value
void PrintTo(const T &value, ::std::ostream *os)

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