template <typename T>

class UniversalPrinter

Defined at line 865 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h

UniversalPrinter

<T

>::Print(value, ostream_ptr) prints the given

value to the given ostream. The caller must ensure that

'ostream_ptr' is not NULL, or the behavior is undefined.

We define UniversalPrinter as a class template (as opposed to a

function template), as we need to partially specialize it for

reference types, which cannot be done with function templates.

Public Methods

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

Note: we deliberately don't call this PrintTo(), as that name

conflicts with ::testing::internal::PrintTo in the body of the

function.

Defined at line 874 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-printers.h