MemoryExtensions.LastIndexOfAnyInRange メソッド

定義

オーバーロード

名前 説明
LastIndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)

lowInclusiveからhighInclusiveまでの範囲の値の最後のインデックスを検索します。値を含みます。

LastIndexOfAnyInRange<T>(Span<T>, T, T)

lowInclusiveからhighInclusiveまでの範囲の値の最後のインデックスを検索します。値を含みます。

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

適用対象

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

属性

適用対象