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

Method CalculateEndIndex

tests/gtest/gtest.h:10658–10665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10656 }; // class RangeGenerator::Iterator
10657
10658 static int CalculateEndIndex(const T& begin,
10659 const T& end,
10660 const IncrementT& step) {
10661 int end_index = 0;
10662 for (T i = begin; i < end; i = static_cast<T>(i + step))
10663 end_index++;
10664 return end_index;
10665 }
10666
10667 // No implementation - assignment is unsupported.
10668 void operator=(const RangeGenerator& other);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected