MemoryExtensions.Trim MemoryExtensions.Trim MemoryExtensions.Trim MemoryExtensions.Trim Method

定義

オーバーロード

Trim(Memory<Char>) Trim(Memory<Char>) Trim(Memory<Char>) Trim(Memory<Char>)

ある文字メモリ領域から先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a character memory region.

Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>)

ある読み取り専用文字メモリ領域から先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a read-only character memory region.

Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>)

ある読み取り専用文字スパンから先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a read-only character span.

Trim(Span<Char>) Trim(Span<Char>) Trim(Span<Char>) Trim(Span<Char>)

ある文字スパンから先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a character span.

Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char)

読み取り専用文字スパンから、先頭と末尾の現れる指定文字をすべて削除します。Removes all leading and trailing occurrences of a specified character from a read-only character span.

Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

読み取り専用文字スパンから、読み取り専用スパンに指定された文字セットが先頭と末尾に現れる箇所をすべて削除します。Removes all leading and trailing occurrences of a set of characters specified in a read-only span from a read-only character span.

Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、スパンから削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a span.

Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、読み取り専用スパンから削除します。Removes all leading and trailing occurrences of a specified element from a read-only span.

Trim<T>(Span<T>, T) Trim<T>(Span<T>, T) Trim<T>(Span<T>, T) Trim<T>(Span<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、スパンから削除します。Removes all leading and trailing occurrences of a specified element from a span.

Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、読み取り専用スパンから削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span.

Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all leading and trailing occurrences of a specified element from a read-only memory region.

Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only memory region.

Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、メモリ領域から削除します。Removes all leading and trailing occurrences of a specified element from a memory region.

Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、メモリ領域から削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a memory region.

Trim(Memory<Char>) Trim(Memory<Char>) Trim(Memory<Char>) Trim(Memory<Char>)

ある文字メモリ領域から先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a character memory region.

public:
[System::Runtime::CompilerServices::Extension]
 static Memory<char> Trim(Memory<char> memory);
public static Memory<char> Trim (this Memory<char> memory);
static member Trim : Memory<char> -> Memory<char>
<Extension()>
Public Function Trim (memory As Memory(Of Char)) As Memory(Of Char)

パラメーター

memory
Memory<Char>

文字が削除されるソース メモリ。The source memory from which the characters are removed.

戻り値

トリミングされた文字メモリ領域。The trimmed character memory region.

Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>) Trim(ReadOnlyMemory<Char>)

ある読み取り専用文字メモリ領域から先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a read-only character memory region.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<char> Trim(ReadOnlyMemory<char> memory);
public static ReadOnlyMemory<char> Trim (this ReadOnlyMemory<char> memory);
static member Trim : ReadOnlyMemory<char> -> ReadOnlyMemory<char>
<Extension()>
Public Function Trim (memory As ReadOnlyMemory(Of Char)) As ReadOnlyMemory(Of Char)

パラメーター

memory
ReadOnlyMemory<Char>

文字が削除されるソース メモリ。The source memory from which the characters are removed.

戻り値

トリミングされた文字メモリ領域。The trimmed character memory region.

Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>)

ある読み取り専用文字スパンから先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a read-only character span.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> Trim(ReadOnlySpan<char> span);
public static ReadOnlySpan<char> Trim (this ReadOnlySpan<char> span);
static member Trim : ReadOnlySpan<char> -> ReadOnlySpan<char>
<Extension()>
Public Function Trim (span As ReadOnlySpan(Of Char)) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

Trim(Span<Char>) Trim(Span<Char>) Trim(Span<Char>) Trim(Span<Char>)

ある文字スパンから先頭と末尾にある空白文字をすべて削除します。Removes all leading and trailing whitespace characters from a character span.

public:
[System::Runtime::CompilerServices::Extension]
 static Span<char> Trim(Span<char> span);
public static Span<char> Trim (this Span<char> span);
static member Trim : Span<char> -> Span<char>
<Extension()>
Public Function Trim (span As Span(Of Char)) As Span(Of Char)

パラメーター

span
Span<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

戻り値

トリミングされた文字スパン。The trimmed character span.

Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char) Trim(ReadOnlySpan<Char>, Char)

読み取り専用文字スパンから、先頭と末尾の現れる指定文字をすべて削除します。Removes all leading and trailing occurrences of a specified character from a read-only character span.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> Trim(ReadOnlySpan<char> span, char trimChar);
public static ReadOnlySpan<char> Trim (this ReadOnlySpan<char> span, char trimChar);
static member Trim : ReadOnlySpan<char> * char -> ReadOnlySpan<char>
<Extension()>
Public Function Trim (span As ReadOnlySpan(Of Char), trimChar As Char) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the character is removed.

trimChar
Char Char Char Char

検索と削除の対象となる指定された文字。The specified character to look for and remove.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>)

読み取り専用文字スパンから、読み取り専用スパンに指定された文字セットが先頭と末尾に現れる箇所をすべて削除します。Removes all leading and trailing occurrences of a set of characters specified in a read-only span from a read-only character span.

public:
[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<char> Trim(ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars);
public static ReadOnlySpan<char> Trim (this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars);
static member Trim : ReadOnlySpan<char> * ReadOnlySpan<char> -> ReadOnlySpan<char>
<Extension()>
Public Function Trim (span As ReadOnlySpan(Of Char), trimChars As ReadOnlySpan(Of Char)) As ReadOnlySpan(Of Char)

パラメーター

span
ReadOnlySpan<Char>

文字が削除されるソース スパン。The source span from which the characters are removed.

trimChars
ReadOnlySpan<Char>

削除対象の文字のセットを格納するスパン。The span which contains the set of characters to remove.

戻り値

トリミングされた読み取り専用文字スパン。The trimmed read-only character span.

注釈

trimChars空の場合は、代わりに空白文字が削除されます。If trimChars is empty, whitespace characters are removed instead.

Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>) Trim<T>(Span<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、スパンから削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Span<T> Trim(Span<T> span, ReadOnlySpan<T> trimElements);
public static Span<T> Trim<T> (this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member Trim : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> Span<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (span As Span(Of T), trimElements As ReadOnlySpan(Of T)) As Span(Of T)

型パラメーター

T

スパン内の要素の型。The type of the elements in the span.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

要素が削除されるソース スパン。The source span from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされたスパン。The trimmed span.

注釈

trimElements空の場合、スパンは変更されずに返されます。If trimElements is empty, the span is returned unaltered.

Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T) Trim<T>(ReadOnlySpan<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、読み取り専用スパンから削除します。Removes all leading and trailing occurrences of a specified element from a read-only span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<T> Trim(ReadOnlySpan<T> span, T trimElement);
public static ReadOnlySpan<T> Trim<T> (this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>;
static member Trim : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * 'T -> ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), trimElement As T) As ReadOnlySpan(Of T)

型パラメーター

T

読み取り専用スパン内の要素の型。The type of the elements in the read-only span.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

要素が削除されるソース スパン。The source span from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされた読み取り専用スパン。The trimmed read-only span.

Trim<T>(Span<T>, T) Trim<T>(Span<T>, T) Trim<T>(Span<T>, T) Trim<T>(Span<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、スパンから削除します。Removes all leading and trailing occurrences of a specified element from a span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Span<T> Trim(Span<T> span, T trimElement);
public static Span<T> Trim<T> (this Span<T> span, T trimElement) where T : IEquatable<T>;
static member Trim : Span<'T (requires 'T :> IEquatable<'T>)> * 'T -> Span<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (span As Span(Of T), trimElement As T) As Span(Of T)

型パラメーター

T

スパン内の要素の型。The type of the elements in the span.

パラメーター

span
Span<T> Span<T> Span<T> Span<T>

要素が削除されるソース スパン。The source span from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされたスパン。The trimmed span.

Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、読み取り専用スパンから削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlySpan<T> Trim(ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements);
public static ReadOnlySpan<T> Trim<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member Trim : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), trimElements As ReadOnlySpan(Of T)) As ReadOnlySpan(Of T)

型パラメーター

T

読み取り専用スパン内の要素の型。The type of the elements in the read-only span.

パラメーター

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

要素が削除されるソース スパン。The source span from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされた読み取り専用スパン。The trimmed read-only span.

注釈

trimElements空の場合、スパンは変更されずに返されます。If trimElements is empty, the span is returned unaltered.

Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T) Trim<T>(ReadOnlyMemory<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all leading and trailing occurrences of a specified element from a read-only memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<T> Trim(ReadOnlyMemory<T> memory, T trimElement);
public static ReadOnlyMemory<T> Trim<T> (this ReadOnlyMemory<T> memory, T trimElement) where T : IEquatable<T>;
static member Trim : ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> * 'T -> ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (memory As ReadOnlyMemory(Of T), trimElement As T) As ReadOnlyMemory(Of T)

型パラメーター

T

読み取り専用メモリ領域内の要素の型。The type of the elements in the read-only memory region.

パラメーター

memory
ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T>

要素が削除されるソース メモリ。The source memory from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされた読み取り専用メモリ領域。The trimmed read-only memory region.

Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、読み取り専用メモリ領域から削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static ReadOnlyMemory<T> Trim(ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements);
public static ReadOnlyMemory<T> Trim<T> (this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member Trim : ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> ReadOnlyMemory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (memory As ReadOnlyMemory(Of T), trimElements As ReadOnlySpan(Of T)) As ReadOnlyMemory(Of T)

型パラメーター

T

読み取り専用メモリ領域内の要素の型。The type of the elements in the read-only memory region.

パラメーター

memory
ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T> ReadOnlyMemory<T>

要素が削除されるソース メモリ。The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされた読み取り専用メモリ領域。The trimmed read-only memory region.

注釈

trimElements空の場合、メモリは変更されずに返されます。If trimElements is empty, the memory is returned unaltered.

Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T) Trim<T>(Memory<T>, T)

指定された要素が先頭と末尾に現れる箇所をすべて、メモリ領域から削除します。Removes all leading and trailing occurrences of a specified element from a memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Memory<T> Trim(Memory<T> memory, T trimElement);
public static Memory<T> Trim<T> (this Memory<T> memory, T trimElement) where T : IEquatable<T>;
static member Trim : Memory<'T (requires 'T :> IEquatable<'T>)> * 'T -> Memory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (memory As Memory(Of T), trimElement As T) As Memory(Of T)

型パラメーター

T

メモリ領域内の要素の型。The type of the elements in the memory region.

パラメーター

memory
Memory<T> Memory<T> Memory<T> Memory<T>

要素が削除されるソース メモリ。The source memory from which the element is removed.

trimElement

検索と削除の対象となる指定の要素。The specified element to look for and remove.

戻り値

トリミングされたメモリ領域。The trimmed memory region.

Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>) Trim<T>(Memory<T>, ReadOnlySpan<T>)

読み取り専用スパンで指定された一連の要素が先頭と末尾に現れる箇所をすべて、メモリ領域から削除します。Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a memory region.

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static Memory<T> Trim(Memory<T> memory, ReadOnlySpan<T> trimElements);
public static Memory<T> Trim<T> (this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>;
static member Trim : Memory<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> Memory<'T (requires 'T :> IEquatable<'T>)> (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function Trim(Of T As IEquatable(Of T)) (memory As Memory(Of T), trimElements As ReadOnlySpan(Of T)) As Memory(Of T)

型パラメーター

T

メモリ領域内の要素の型。The type of the elements in the memory region.

パラメーター

memory
Memory<T> Memory<T> Memory<T> Memory<T>

要素が削除されるソース メモリ。The source memory from which the elements are removed.

trimElements
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

削除する要素のセットを含むスパン。The span which contains the set of elements to remove.

戻り値

トリミングされたメモリ領域。The trimmed memory region.

注釈

trimElements空の場合、メモリは変更されずに返されます。If trimElements is empty, the memory is returned unaltered.

適用対象