System::Collections::Generic::List::BinarySearch método
Contenido
[
Ocultar
]List::BinarySearch(const T&) const method
Busca un elemento en una lista ordenada.
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
| Parámetro | Tipo | Descripción |
|---|---|---|
| item | const T& | Elemento a buscar. |
ReturnValue
Índice del elemento en la lista ordenada o complemento del índice más cercano.
Ver también
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method
Busca un elemento en una lista ordenada.
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Parámetro | Tipo | Descripción |
|---|---|---|
| item | const T& | Elemento a buscar. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer para usar. |
ReturnValue
Índice del elemento en la lista ordenada o complemento del índice más cercano.
Ver también
- 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
Busca un elemento en una lista ordenada.
int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
| Parámetro | Tipo | Descripción |
|---|---|---|
| índice | int | Inicio del rango. |
| count | int | Tamaño del rango. |
| item | const T& | Elemento a buscar. |
| comparer | const SharedPtr<System::Collections::Generic::IComparer<T>>& | Comparer para usar. |
ReturnValue
Índice del elemento en la lista ordenada o complemento del índice más cercano.
Ver también
- Typedef SharedPtr
- Class IComparer
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++