MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / Equals

Method Equals

tests/gtest/gtest.h:10632–10641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10630 }
10631 const T* Current() const override { return &value_; }
10632 bool Equals(const ParamIteratorInterface<T>& other) const override {
10633 // Having the same base generator guarantees that the other
10634 // iterator is of the same type and we can downcast.
10635 GTEST_CHECK_(BaseGenerator() == other.BaseGenerator())
10636 << "The program attempted to compare iterators "
10637 << "from different generators." << std::endl;
10638 const int other_index =
10639 CheckedDowncastToActualType<const Iterator>(&other)->index_;
10640 return index_ == other_index;
10641 }
10642
10643 private:
10644 Iterator(const Iterator& other)

Callers 1

operator==Method · 0.45

Calls 1

BaseGeneratorMethod · 0.45

Tested by

no test coverage detected