Xmipp  v3.23.11-Nereus
Static Public Member Functions | List of all members
testing::internal::FunctionPointerPrinter Struct Reference

#include <gtest-printers.h>

Static Public Member Functions

template<typename T , typename = typename std::enable_if< std::is_function<T>::value>::type>
static void PrintValue (T *p, ::std::ostream *os)
 

Detailed Description

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

Member Function Documentation

◆ PrintValue()

template<typename T , typename = typename std::enable_if< std::is_function<T>::value>::type>
static void testing::internal::FunctionPointerPrinter::PrintValue ( T *  p,
::std::ostream *  os 
)
inlinestatic

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

169  {
170  if (p == nullptr) {
171  *os << "NULL";
172  } else {
173  // T is a function type, so '*os << p' doesn't do what we want
174  // (it just prints p as bool). We want to print p as a const
175  // void*.
176  *os << reinterpret_cast<const void*>(p);
177  }
178  }

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