System::Collections::Generic::List::BinarySearch 메서드

List::BinarySearch(const T&) const method

정렬된 리스트에서 항목을 찾습니다.

int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
매개변수형식설명
항목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
매개변수형식설명
항목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
매개변수형식설명
indexint범위 시작.
countint범위 크기.
항목const T&찾을 항목.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer 사용.

ReturnValue

정렬된 리스트에서 항목의 인덱스 또는 가장 가까운 인덱스의 보수.

또 보기