System::Collections::Generic::List::BinarySearch-methode
inhoud
[
verbergen
]List::BinarySearch(const T&) const method
Zoekt naar een item in een gesorteerde lijst.
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
| Parameter | Type | Beschrijving |
|---|---|---|
| item | const T& | Item om naar te zoeken. |
ReturnValue
Index van het item in de gesorteerde lijst of complement van de dichtstbijzijnde index.
Zie ook
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Zoekt naar een item in een gesorteerde lijst.
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Parameter | Type | Beschrijving |
|---|---|---|
| item | const T& | Item om naar te zoeken. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer om te gebruiken. |
ReturnValue
Index van het item in de gesorteerde lijst of complement van de dichtstbijzijnde index.
Zie ook
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::BinarySearch(int, int, const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Zoekt naar een item in een gesorteerde lijst.
int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Parameter | Type | Beschrijving |
|---|---|---|
| index | int | Begin van bereik. |
| count | int | Grootte van bereik. |
| item | const T& | Item om naar te zoeken. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer om te gebruiken. |
ReturnValue
Index van het item in de gesorteerde lijst of complement van de dichtstbijzijnde index.
Zie ook
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++