template <typename T>

struct ConstRef

Defined at line 1115 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h

Transforms "T" into "const T&" according to standard reference collapsing

rules (this is only needed as a backport for C++98 compilers that do not

support reference collapsing). Specifically, it transforms:

char ==> const char

&

const char ==> const char

&

char

&

==> char

&

const char

&

==> const char

&

Note that the non-const reference will not have "const" added. This is

standard, and necessary so that "T" can always bind to "const T&".