IHash<TKey,TValue> IHash<TKey,TValue> IHash<TKey,TValue> IHash<TKey,TValue> Interface

Definition

Defines the interface of the STL/CLR hash_map, hash_multimap, hash_set, and hash_multiset objects.

generic <typename TKey, typename TValue>
public interface class IHash : ICloneable, Microsoft::VisualC::StlClr::Generic::IBidirectionalContainer<TValue>, System::Collections::ICollection
public interface IHash<TKey,TValue> : ICloneable, Microsoft.VisualC.StlClr.Generic.IBidirectionalContainer<TValue>, System.Collections.ICollection
type IHash<'Key, 'Value> = interface
    interface IBidirectionalContainer<'Value>
    interface ICloneable
    interface ICollection
    interface IEnumerable
Public Interface IHash(Of TKey, TValue)
Implements IBidirectionalContainer(Of TValue), ICloneable, ICollection

Type Parameters

TKey

The type of the key component of an element in the controlled sequence.

TValue

The type of the value component of an element in the controlled sequence.

Implements

Remarks

Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Such a parameter is known as an unnamed parameter. In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.

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

Methods

begin(ContainerBidirectionalIterator<TValue>) begin(ContainerBidirectionalIterator<TValue>) begin(ContainerBidirectionalIterator<TValue>) begin(ContainerBidirectionalIterator<TValue>)

Designates the beginning of the controlled sequence.

bucket_count() bucket_count() bucket_count() bucket_count()

Counts the number of buckets in the hash table.

clear() clear() clear() clear()

Removes all elements from the container.

Clone() Clone() Clone() Clone()

Creates a new object that is a copy of the current instance.

(Inherited from ICloneable)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

(Inherited from ICollection)
count(TKey) count(TKey) count(TKey) count(TKey)

Finds the number of elements that match a specified key.

empty() empty() empty() empty()

Tests whether no elements are present in the container.

end(ContainerBidirectionalIterator<TValue>) end(ContainerBidirectionalIterator<TValue>) end(ContainerBidirectionalIterator<TValue>) end(ContainerBidirectionalIterator<TValue>)

Designates the end of the controlled sequence.

equal_range(GenericPair<ContainerBidirectionalIterator<TValue>,ContainerBidirectionalIterator<TValue>>, TKey) equal_range(GenericPair<ContainerBidirectionalIterator<TValue>,ContainerBidirectionalIterator<TValue>>, TKey) equal_range(GenericPair<ContainerBidirectionalIterator<TValue>,ContainerBidirectionalIterator<TValue>>, TKey) equal_range(GenericPair<ContainerBidirectionalIterator<TValue>,ContainerBidirectionalIterator<TValue>>, TKey)

Finds the range that matches a specified key.

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes from the container the element that is specified by the given iterator.

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes from the container the elements between the specified iterators.

erase(TKey) erase(TKey) erase(TKey) erase(TKey)

Removes elements from the container that match the specified key.

find(ContainerBidirectionalIterator<TValue>, TKey) find(ContainerBidirectionalIterator<TValue>, TKey) find(ContainerBidirectionalIterator<TValue>, TKey) find(ContainerBidirectionalIterator<TValue>, TKey)

Finds an element that matches a specified key.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
get_generation() get_generation() get_generation() get_generation()

Gets the current change generation of the underlying container.

(Inherited from IBidirectionalContainer<TValue>)
hash_delegate() hash_delegate() hash_delegate() hash_delegate()

Returns the delegate that is used to convert a key value to an integer.

insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

Adds the given element to the container.

insert(GenericPair<ContainerBidirectionalIterator<TValue>,Boolean>, TValue) insert(GenericPair<ContainerBidirectionalIterator<TValue>,Boolean>, TValue) insert(GenericPair<ContainerBidirectionalIterator<TValue>,Boolean>, TValue) insert(GenericPair<ContainerBidirectionalIterator<TValue>,Boolean>, TValue)

Adds the given value to the container.

insert(IEnumerable) insert(IEnumerable) insert(IEnumerable) insert(IEnumerable)

Adds the given enumeration to the container.

insert(IInputIterator<TValue>, IInputIterator<TValue>) insert(IInputIterator<TValue>, IInputIterator<TValue>) insert(IInputIterator<TValue>, IInputIterator<TValue>) insert(IInputIterator<TValue>, IInputIterator<TValue>)

Adds to the container the elements specified by the given iterators.

key_comp() key_comp() key_comp() key_comp()

Returns the ordering delegate that is used to order the controlled sequence. You use it to compare two keys.

load_factor() load_factor() load_factor() load_factor()

Counts the average number of elements per bucket in the hash table.

lower_bound(ContainerBidirectionalIterator<TValue>, TKey) lower_bound(ContainerBidirectionalIterator<TValue>, TKey) lower_bound(ContainerBidirectionalIterator<TValue>, TKey) lower_bound(ContainerBidirectionalIterator<TValue>, TKey)

Finds the beginning of the range of elements that match a specified key.

max_load_factor() max_load_factor() max_load_factor() max_load_factor()

Gets the maximum number of elements per bucket in the hash table.

max_load_factor(Single) max_load_factor(Single) max_load_factor(Single) max_load_factor(Single)

Sets the maximum number of elements per bucket in the hash table.

rbegin(ReverseBidirectionalIterator<TValue>) rbegin(ReverseBidirectionalIterator<TValue>) rbegin(ReverseBidirectionalIterator<TValue>) rbegin(ReverseBidirectionalIterator<TValue>)

Designates the beginning of the reversed controlled sequence.

rehash(Int32) rehash(Int32) rehash(Int32) rehash(Int32)

Rebuilds the hash table.

rend(ReverseBidirectionalIterator<TValue>) rend(ReverseBidirectionalIterator<TValue>) rend(ReverseBidirectionalIterator<TValue>) rend(ReverseBidirectionalIterator<TValue>)

Designates the end of the reversed controlled sequence.

size() size() size() size()

Counts the number of elements in the container.

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

Swaps the contents of two containers.

upper_bound(ContainerBidirectionalIterator<TValue>, TKey) upper_bound(ContainerBidirectionalIterator<TValue>, TKey) upper_bound(ContainerBidirectionalIterator<TValue>, TKey) upper_bound(ContainerBidirectionalIterator<TValue>, TKey)

Finds the end of the range of elements that match a specified key.

value_comp() value_comp() value_comp() value_comp()

Returns the ordering delegate that is used to order the controlled sequence.

Properties

Count Count Count Count

Gets the number of elements contained in the ICollection.

(Inherited from ICollection)
IsSynchronized IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(Inherited from ICollection)
SyncRoot SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

(Inherited from ICollection)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to