LastIndexOfAny()
System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T>&, const T&, const T&, const T&) function
Finds the last occurrence of any of three specified values within a span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T> &span, const T &value0, const T &value1, const T &value2)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to search within |
value0 | const T& | The first value to search for |
value1 | const T& | The second value to search for |
value2 | const T& | The third value to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const Span<T>&, const T&, const T&, const T&) function
Finds the last occurrence of any of three specified values within a mutable span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const Span<T> &span, const T &value0, const T &value1, const T &value2)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search within |
value0 | const T& | The first value to search for |
value1 | const T& | The second value to search for |
value2 | const T& | The third value to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T>&, const T&, const T&) function
Finds the last occurrence of any of two specified values within a span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T> &span, const T &value0, const T &value1)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to search within |
value0 | const T& | The first value to search for |
value1 | const T& | The second value to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const Span<T>&, const T&, const T&) function
Finds the last occurrence of any of two specified values within a mutable span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const Span<T> &span, const T &value0, const T &value1)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search within |
value0 | const T& | The first value to search for |
value1 | const T& | The second value to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function
Finds the last occurrence of any value from a sequence within a span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const ReadOnlySpan<T> &span, const ReadOnlySpan<T> &values)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to search within |
values | const ReadOnlySpan<T>& | The sequence of values to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const Span<T>&, const ReadOnlySpan<T>&) function
Finds the last occurrence of any value from a sequence within a mutable span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const Span<T> &span, const ReadOnlySpan<T> &values)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search within |
values | const ReadOnlySpan<T>& | The sequence of values to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
System::MemoryExtensions::LastIndexOfAny(const Span<T>&, const Span<T>&) function
Finds the last occurrence of any value from a mutable sequence within a mutable span.
template<typename T> int32_t System::MemoryExtensions::LastIndexOfAny(const Span<T> &span, const Span<T> &values)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search within |
values | const Span<T>& | The sequence of values to search for |
Return Value
The zero-based index of the last occurrence, or -1 if not found
See Also
- Class ReadOnlySpan
- Class Span
- Namespace System::MemoryExtensions
- Library Aspose.Slides