template <typename D, typename Rhs, typename Op>
class ComparisonBase
Defined at line 692 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
Implements a matcher that compares a given value with a
pre-supplied value using one of the ==,
<
=,
<
, etc, operators. The
two values being compared don't have to have the same type.
The matcher defined here is polymorphic (for example, Eq(5) can be
used to match an int, a short, a double, etc). Therefore we use
a template type conversion operator in the implementation.
The following template definition assumes that the Rhs parameter is
a "bare" type (i.e. neither 'const T' nor 'T
&
').
Public Methods
void ComparisonBase<D, Rhs, Op> (const Rhs & rhs)
Defined at line 694 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
template <typename Lhs>
bool MatchAndExplain (const Lhs & lhs, std::ostream * )
Defined at line 699 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void DescribeTo (std::ostream * os)
Defined at line 702 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h
void DescribeNegationTo (std::ostream * os)
Defined at line 706 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-matchers.h