System::Collections::Generic::List::BinarySearch metod
Innehåll
[
Dölj
]List::BinarySearch(const T&) const method
Söker efter objekt i en sorterad lista.
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
| Parameter | Type | Beskrivning |
|---|---|---|
| objekt | const T& | Objekt att söka efter. |
ReturnValue
Index för objektet i den sorterade listan eller komplementet till närmaste index.
Se även
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Söker efter objekt i en sorterad lista.
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Parameter | Type | Beskrivning |
|---|---|---|
| objekt | const T& | Objekt att söka efter. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer att använda. |
ReturnValue
Index för objektet i den sorterade listan eller komplementet till närmaste index.
Se även
- 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
Söker efter objekt i en sorterad lista.
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 | Beskrivning |
|---|---|---|
| index | int | Intervallstart. |
| count | int | Intervallstorlek. |
| objekt | const T& | Objekt att söka efter. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer att använda. |
ReturnValue
Index för objektet i den sorterade listan eller komplementet till närmaste index.
Se även
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++