LastIndexOfAnyExcept()

System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T>&, const T&, const T&, const T&) function

Finds the last occurrence of any element except three specified values within a span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T> &span, const T &value0, const T &value1, const T &value2)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst ReadOnlySpan<T>&The span to search within
value0const T&The first value to exclude
value1const T&The second value to exclude
value2const T&The third value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T>&, const T&, const T&, const T&) function

Finds the last occurrence of any element except three specified values within a mutable span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T> &span, const T &value0, const T &value1, const T &value2)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst Span<T>&The span to search within
value0const T&The first value to exclude
value1const T&The second value to exclude
value2const T&The third value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T>&, const T&, const T&) function

Finds the last occurrence of any element except two specified values within a span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T> &span, const T &value0, const T &value1)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst ReadOnlySpan<T>&The span to search within
value0const T&The first value to exclude
value1const T&The second value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T>&, const T&, const T&) function

Finds the last occurrence of any element except two specified values within a mutable span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T> &span, const T &value0, const T &value1)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst Span<T>&The span to search within
value0const T&The first value to exclude
value1const T&The second value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T>&, const T&) function

Finds the last occurrence of any element except a specified value within a span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T> &span, const T &value)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst ReadOnlySpan<T>&The span to search within
valueconst T&The value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T>&, const T&) function

Finds the last occurrence of any element except a specified value within a mutable span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T> &span, const T &value)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst Span<T>&The span to search within
valueconst T&The value to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function

Finds the last occurrence of any element except values from a sequence within a span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const ReadOnlySpan<T> &span, const ReadOnlySpan<T> &values)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst ReadOnlySpan<T>&The span to search within
valuesconst ReadOnlySpan<T>&The sequence of values to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T>&, const ReadOnlySpan<T>&) function

Finds the last occurrence of any element except values from a sequence within a mutable span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T> &span, const ReadOnlySpan<T> &values)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst Span<T>&The span to search within
valuesconst ReadOnlySpan<T>&The sequence of values to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T>&, const Span<T>&) function

Finds the last occurrence of any element except values from a mutable sequence within a mutable span.

template<typename T> int32_t System::MemoryExtensions::LastIndexOfAnyExcept(const Span<T> &span, const Span<T> &values)

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

ParameterTypeDescription
spanconst Span<T>&The span to search within
valuesconst Span<T>&The sequence of values to exclude

Return Value

The zero-based index of the last non-excluded element, or -1 if not found

See Also