Xmipp  v3.23.11-Nereus
Static Public Member Functions | List of all members
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 934 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 940 of file gtest-printers.h.

940  {
941  // Prints the address of the value. We use reinterpret_cast here
942  // as static_cast doesn't compile when T is a function type.
943  *os << "@" << reinterpret_cast<const void*>(&value) << " ";
944 
945  // Then prints the value itself.
946  UniversalPrint(value, os);
947  }
void UniversalPrint(const T &value, ::std::ostream *os)

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