Прочетете на английски Редактиране

Споделяне чрез


IHash<TKey,TValue>.swap(IHash<TKey,TValue>) Method

Definition

Swaps the contents of two containers.

C#
public void swap(Microsoft.VisualC.StlClr.IHash<TKey,TValue> _Right);

Parameters

_Right
IHash<TKey,TValue>

The container with which to swap contents.

Remarks

For more information, see hash_map::swap (STL/CLR), hash_multimap::swap (STL/CLR), hash_set::swap (STL/CLR), and hash_multiset::swap (STL/CLR).

Applies to

Продукт Версии
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1