System::Collections::Generic::List::BinarySearch-methode

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
ParameterTypeBeschrijving
itemconst T&Item om naar te zoeken.

ReturnValue

Index van het item in de gesorteerde lijst of complement van de dichtstbijzijnde index.

Zie ook

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
ParameterTypeBeschrijving
itemconst T&Item om naar te zoeken.
comparerconst 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

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
ParameterTypeBeschrijving
indexintBegin van bereik.
countintGrootte van bereik.
itemconst T&Item om naar te zoeken.
comparerconst 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