MCPcopy Create free account
hub / github.com/apache/singa / Equals

Method Equals

test/gtest/gtest.h:10215–10224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10213 }
10214 virtual const T* Current() const { return &value_; }
10215 virtual bool Equals(const ParamIteratorInterface<T>& other) const {
10216 // Having the same base generator guarantees that the other
10217 // iterator is of the same type and we can downcast.
10218 GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
10219 << "The program attempted to compare iterators "
10220 << "from different generators." << std::endl;
10221 const int other_index =
10222 CheckedDowncastToActualType<const Iterator>(&other)->index_;
10223 return index_ == other_index;
10224 }
10225
10226 private:
10227 Iterator(const Iterator& other)

Callers 1

operator==Method · 0.45

Calls 1

BaseGeneratorMethod · 0.45

Tested by

no test coverage detected