ITree<TKey, TValue> Interface
Defines the interface of the STL/CLR hash_map, hash_multimap, hash_set, and hash_multiset objects.
Assembly: Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)
generic<typename TKey, typename TValue> public interface class ITree : IBidirectionalContainer<TValue>, ICloneable, ICollection, IEnumerable
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.
The ITree<TKey, TValue> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements contained in the ICollection. (Inherited from ICollection.) |
![]() | IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.) |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.) |
| Name | Description | |
|---|---|---|
![]() | begin | Designates the beginning of the controlled sequence. |
![]() | clear | Removes all elements from the container. |
![]() | Clone | Creates a new object that is a copy of the current instance. (Inherited from ICloneable.) |
![]() | CopyTo | Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.) |
![]() | count | Finds the number of elements that match a specified key. |
![]() | empty | Tests whether no elements are present in the container. |
![]() | end | Designates the end of the controlled sequence. |
![]() | equal_range | Finds the range that matches a specified key. |
![]() | erase(TKey) | Removes elements from the container that match the specified key. |
![]() | 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>) | Removes from the container the elements between the specified iterators. |
![]() | find | Finds an element that matches a specified key. |
![]() | get_generation | Gets the current change generation of the underlying container. (Inherited from IBidirectionalContainer<TValue>.) |
![]() | GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) |
![]() | insert(IEnumerable<TValue>) | Adds the given enumeration to the container. |
![]() | insert(GenericPair<ContainerBidirectionalIterator<TValue>, Boolean>%, TValue) | Adds the given value to the container. |
![]() | insert(IInputIterator<TValue>, IInputIterator<TValue>) | Adds to the container the elements specified by the given iterators. |
![]() | insert(ContainerBidirectionalIterator<TValue>%, ContainerBidirectionalIterator<TValue>, TValue) | Adds the given element to the container. |
![]() | key_comp | Returns the ordering delegate that is used to order the controlled sequence. You use it to compare two keys. |
![]() | lower_bound | Finds the beginning of the range of elements that match a specified key. |
![]() | rbegin | Designates the beginning of the reversed controlled sequence. |
![]() | rend | Designates the end of the reversed controlled sequence. |
![]() | size | Counts the number of elements in the container. |
![]() | swap | Swaps the contents of two containers. |
![]() | upper_bound | Finds the end of the range of elements that match a specified key. |
![]() | value_comp | Returns the ordering delegate that is used to order the controlled sequence. |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
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).
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
