Méthode System::Collections::Generic::List::BinarySearch
Contenu
[
Cacher
]List::BinarySearch(const T&) const method
Recherche un élément dans une liste triée.
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
| Paramètre | Type | Description |
|---|---|---|
| élément | const T& | Élément à rechercher. |
ReturnValue
Indice de l’élément dans la liste triée ou complément de l’indice le plus proche.
Voir aussi
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Recherche un élément dans une liste triée.
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Paramètre | Type | Description |
|---|---|---|
| élément | const T& | Élément à rechercher. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer à utiliser. |
ReturnValue
Indice de l’élément dans la liste triée ou complément de l’indice le plus proche.
Voir aussi
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::BinarySearch(int, int, const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Recherche un élément dans une liste triée.
int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Paramètre | Type | Description |
|---|---|---|
| indice | int | Début de la plage. |
| count | int | Taille de la plage. |
| élément | const T& | Élément à rechercher. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer à utiliser. |
ReturnValue
Indice de l’élément dans la liste triée ou complément de l’indice le plus proche.
Voir aussi
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++