System::Collections::Generic::List::BinarySearch método

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ámetroTipoDescripción
elementoconst T&Elemento a buscar.

ReturnValue

Index of the item in sorted list or complement of closest index.

Ver también

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ámetroTipoDescripción
elementoconst T&Elemento a buscar.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer para usar.

ReturnValue

Index of the item in sorted list or complement of closest index.

Ver también

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ámetroTipoDescripción
indexintRange inicio.
countintRange tamaño.
elementoconst T&Elemento a buscar.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer para usar.

ReturnValue

Index of the item in sorted list or complement of closest index.

Ver también