MemoryExtensions.IndexOfAnyExceptInRange メソッド

定義

オーバーロード

IndexOfAnyExceptInRange<T>(Span<T>, T, T)

と の範囲 lowInclusive を含む範囲外の値の最初のインデックスを highInclusive検索します。

IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

と の範囲 lowInclusive を含む範囲外の値の最初のインデックスを highInclusive検索します。

IndexOfAnyExceptInRange<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

と の範囲 lowInclusive を含む範囲外の値の最初のインデックスを highInclusive検索します。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static int IndexOfAnyExceptInRange(Span<T> span, T lowInclusive, T highInclusive);
public static int IndexOfAnyExceptInRange<T> (this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member IndexOfAnyExceptInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyExceptInRange(Of T As IComparable(Of T)) (span As Span(Of T), lowInclusive As T, highInclusive As T) As Integer

型パラメーター

T

スパンと値の型。

パラメーター

span
Span<T>

検索するスパン。

lowInclusive
T

除外された範囲の下限 (包括)。

highInclusive
T

除外された範囲の上限 (包括)。

戻り値

指定した範囲外の値が最初に出現したスパン内のインデックス。 すべての値が指定した範囲内にある場合は、-1 を返します。

適用対象

IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

と の範囲 lowInclusive を含む範囲外の値の最初のインデックスを highInclusive検索します。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static int IndexOfAnyExceptInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static int IndexOfAnyExceptInRange<T> (this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member IndexOfAnyExceptInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyExceptInRange(Of T As IComparable(Of T)) (span As ReadOnlySpan(Of T), lowInclusive As T, highInclusive As T) As Integer

型パラメーター

T

スパンと値の型。

パラメーター

span
ReadOnlySpan<T>

検索するスパン。

lowInclusive
T

除外された範囲の下限 (包括)。

highInclusive
T

除外された範囲の上限 (包括)。

戻り値

指定した範囲外の値が最初に出現したスパン内のインデックス。 すべての値が指定した範囲内にある場合は、-1 を返します。

適用対象