MemoryExtensions.IndexOfAnyInRange メソッド

定義

オーバーロード

名前 説明
IndexOfAnyInRange<T>(Span<T>, T, T)

lowInclusiveからhighInclusiveまでの範囲の任意の値の最初のインデックスを検索します(両端を含む)。

IndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)

lowInclusiveからhighInclusiveまでの範囲の任意の値の最初のインデックスを検索します(両端を含む)。

IndexOfAnyInRange<T>(Span<T>, T, T)

ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs

lowInclusiveからhighInclusiveまでの範囲の任意の値の最初のインデックスを検索します(両端を含む)。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static int IndexOfAnyInRange(Span<T> span, T lowInclusive, T highInclusive);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static int IndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
public static int IndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member IndexOfAnyInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
static member IndexOfAnyInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyInRange(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 を返します。

属性

適用対象

IndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)

ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs
ソース:
MemoryExtensions.cs

lowInclusiveからhighInclusiveまでの範囲の任意の値の最初のインデックスを検索します(両端を含む)。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static int IndexOfAnyInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member IndexOfAnyInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyInRange(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 を返します。

適用対象