SequenceCompareTo()
Contents
[
Hide
]System::MemoryExtensions::SequenceCompareTo(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function
Compares two ReadOnlySpans lexicographically.
template<typename T> int32_t System::MemoryExtensions::SequenceCompareTo(const ReadOnlySpan<T> &span, const ReadOnlySpan<T> &other)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the spans |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The first span to compare |
other | const ReadOnlySpan<T>& | The second span to compare |
Return Value
-1 if span < other, 0 if span == other, 1 if span > other
System::MemoryExtensions::SequenceCompareTo(const Span<T>&, const ReadOnlySpan<T>&) function
Compares a Span and ReadOnlySpan lexicographically.
template<typename T> int32_t System::MemoryExtensions::SequenceCompareTo(const Span<T> &span, const ReadOnlySpan<T> &other)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the spans |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The Span to compare |
other | const ReadOnlySpan<T>& | The ReadOnlySpan to compare |
Return Value
-1 if span < other, 0 if span == other, 1 if span > other
System::MemoryExtensions::SequenceCompareTo(const ReadOnlySpan<T>&, const Span<T>&) function
Compares a ReadOnlySpan and Span lexicographically.
template<typename T> int32_t System::MemoryExtensions::SequenceCompareTo(const ReadOnlySpan<T> &span, const Span<T> &other)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the spans |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The ReadOnlySpan to compare |
other | const Span<T>& | The Span to compare |
Return Value
-1 if span < other, 0 if span == other, 1 if span > other
See Also
- Class ReadOnlySpan
- Class Span
- Namespace System::MemoryExtensions
- Library Aspose.Slides