System::Collections::Generic::List::BinarySearch μέθοδος

List::BinarySearch(const T&) const method

Αναζητά το στοιχείο σε μια ταξινομημένη λίστα.

int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
ParameterTypeΠεριγραφή
στοιχείοconst T&Αντικείμενο προς αναζήτηση.

ReturnValue

Δείκτης του στοιχείου σε ταξινομημένη λίστα ή συμπλήρωμα του πιο κοντινού δείκτη.

Δείτε επίσης

List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method

Αναζητά το στοιχείο σε μια ταξινομημένη λίστα.

int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
ParameterTypeΠεριγραφή
στοιχείοconst T&Αντικείμενο προς αναζήτηση.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer για χρήση.

ReturnValue

Δείκτης του στοιχείου σε ταξινομημένη λίστα ή συμπλήρωμα του πιο κοντινού δείκτη.

Δείτε επίσης

List::BinarySearch(int, int, const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method

Αναζητά το στοιχείο σε μια ταξινομημένη λίστα.

int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
ParameterTypeΠεριγραφή
δείκτηςintΑρχή περιοχής.
countintΜέγεθος περιοχής.
στοιχείοconst T&Αντικείμενο προς αναζήτηση.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer για χρήση.

ReturnValue

Δείκτης του στοιχείου σε ταξινομημένη λίστα ή συμπλήρωμα του πιο κοντινού δείκτη.

Δείτε επίσης