طريقة System::Collections::Generic::_net_binnary_search

System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator>&, int, int, T) method

تنفّذ بحثًا ثنائيًا في حاوية وصول عشوائي. تخصيص للمؤشرات الذكية. تستخدم طريقة System::Object::CompareTo.

template<template< typename, typename > class,class T,class Allocator> std::enable_if<IsSmartPtr<T>::value, int>::type System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator> &container, int index, int count, T value)
معاملالوصف
containerTنوع قالب حاوية على نمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
المخصصنوع المخصص.
معاملنوعالوصف
containerconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
قيمةTالقيمة المراد البحث عنها.

ReturnValue

إذا وُجدت، فهرس العنصر التالي؛ وإلا، مكمل الفهرس الذي توقّف عنده البحث.

انظر أيضًا

System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator>&, int, int, T) method

تنفّذ بحثًا ثنائيًا في حاوية وصول عشوائي. تخصيص لأنواع القيم. تستخدم طريقة CompareTo.

template<template< typename, typename > class,class T,class Allocator> std::enable_if<!IsSmartPtr<T>::value &&!std::is_scalar<T>::value, int>::type System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator> &container, int index, int count, T value)
معاملالوصف
containerTنوع قالب حاوية على نمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
المخصصنوع المخصص.
معاملنوعالوصف
containerconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
قيمةTالقيمة المراد البحث عنها.

ReturnValue

إذا وُجدت، فهرس العنصر التالي؛ وإلا، مكمل الفهرس الذي توقّف عنده البحث.

انظر أيضًا

System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator>&, int, int, T) method

تنفّذ بحثًا ثنائيًا في حاوية وصول عشوائي. تخصيص لأنواع القيم العددية. تقارن العناصر باستخدام عوامل أكبر وأصغر.

template<template< typename, typename > class,class T,class Allocator> std::enable_if<std::is_scalar<T>::value, int>::type System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator> &container, int index, int count, T value)
معاملالوصف
containerTنوع قالب حاوية على نمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
المخصصنوع المخصص.
معاملنوعالوصف
containerconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
قيمةTالقيمة المراد البحث عنها.

ReturnValue

إذا وُجدت، فهرس العنصر التالي؛ وإلا، مكمل الفهرس الذي توقّف عنده البحث.

انظر أيضًا

System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator>&, int, int, T, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method

تنفّذ بحثًا ثنائيًا في حاوية وصول عشوائي.

template<template< typename, typename > class,class T,class Allocator> int System::Collections::Generic::_net_binnary_search(const containterT<T, Allocator> &container, int index, int count, T value, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer)
معاملالوصف
containerTنوع قالب حاوية على نمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
المخصصنوع المخصص.
معاملنوعالوصف
containerconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
قيمةTالقيمة المراد البحث عنها.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&كائن Comparer.

ReturnValue

إذا وُجدت، فهرس العنصر التالي؛ وإلا، مكمل الفهرس الذي توقّف عنده البحث.

انظر أيضًا