SequenceEqualImpl()

System::MemoryExtensions::Details::SequenceEqualImpl(const ReadOnlySpan<T>&, const int32_t, int32_t, const ReadOnlySpan<T>&) function

Checks if two spans are equal starting from specified positions.

template<typename T> bool System::MemoryExtensions::Details::SequenceEqualImpl(const ReadOnlySpan<T> &first, const int32_t start, int32_t length, const ReadOnlySpan<T> &second)

Template parameters

ParameterDescription
TType of elements in spans

Arguments

ParameterTypeDescription
firstconst ReadOnlySpan<T>&First span
startconst int32_tStarting index in first span
lengthint32_tNumber of elements to compare
secondconst ReadOnlySpan<T>&Second span

Return Value

true if the specified ranges are equal, false otherwise

See Also