Electroneum
testing::internal::UniversalPrinter< T & > Class Template Reference

#include <gtest-printers.h>

Static Public Member Functions

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

Detailed Description

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

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

Member Function Documentation

◆ Print() [1/2]

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

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

764  {
765  // Prints the address of the value. We use reinterpret_cast here
766  // as static_cast doesn't compile when T is a function type.
767  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
768 
769  // Then prints the value itself.
770  UniversalPrint(value, os);
771  }
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
void UniversalPrint(const T &value, ::std::ostream *os)
Here is the call graph for this function:

◆ Print() [2/2]

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

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

764  {
765  // Prints the address of the value. We use reinterpret_cast here
766  // as static_cast doesn't compile when T is a function type.
767  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
768 
769  // Then prints the value itself.
770  UniversalPrint(value, os);
771  }
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
void UniversalPrint(const T &value, ::std::ostream *os)
Here is the call graph for this function:

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