ContainsAnyExcept()

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

Checks if a read-only span contains any element except three specified values.

template<typename T> bool System::MemoryExtensions::ContainsAnyExcept(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 in
value0const T&The first value to exclude
value1const T&The second value to exclude
value2const T&The third value to exclude

Return Value

true if any element different from the specified values is found, false otherwise

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

Checks if a mutable span contains any element except three specified values.

template<typename T> bool System::MemoryExtensions::ContainsAnyExcept(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 mutable span to search in
value0const T&The first value to exclude
value1const T&The second value to exclude
value2const T&The third value to exclude

Return Value

true if any element different from the specified values is found, false otherwise

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

Checks if a read-only span contains any element except two specified values.

template<typename T> bool System::MemoryExtensions::ContainsAnyExcept(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 in
value0const T&The first value to exclude
value1const T&The second value to exclude

Return Value

true if any element different from the specified values is found, false otherwise

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

Checks if a mutable span contains any element except two specified values.

template<typename T> bool System::MemoryExtensions::ContainsAnyExcept(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 mutable span to search in
value0const T&The first value to exclude
value1const T&The second value to exclude

Return Value

true if any element different from the specified values is found, false otherwise

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

Checks if a read-only span contains any element except a specified value.

template<typename T> bool System::MemoryExtensions::ContainsAnyExcept(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 in
valueconst T&The value to exclude

Return Value

true if any element different from the specified value is found, false otherwise

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

Checks if a mutable span contains any element except a specified value.

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

Template parameters

ParameterDescription
TThe type of elements in the span

Arguments

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

Return Value

true if any element different from the specified value is found, false otherwise

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

Checks if a read-only span contains any element except those in another span.

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

Template parameters

ParameterDescription
TThe type of elements in the spans

Arguments

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

Return Value

true if any element not in values is found, false otherwise

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

Checks if a mutable span contains any element except those in a read-only span.

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

Template parameters

ParameterDescription
TThe type of elements in the spans

Arguments

ParameterTypeDescription
spanconst Span<T>&The mutable span to search in
valuesconst ReadOnlySpan<T>&The read-only span of values to exclude

Return Value

true if any element not in values is found, false otherwise

See Also