دالة 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)
Parameterالوصف
containerTنوع قالب حاوية بنمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
Allocatorنوع المخصص.
ParameterTypeالوصف
حاويةconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
valueTالقيمة للبحث عنها.

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)
Parameterالوصف
containerTنوع قالب حاوية بنمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
Allocatorنوع المخصص.
ParameterTypeالوصف
حاويةconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
valueTالقيمة للبحث عنها.

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)
Parameterالوصف
containerTنوع قالب حاوية بنمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
Allocatorنوع المخصص.
ParameterTypeالوصف
حاويةconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
valueTالقيمة للبحث عنها.

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)
Parameterالوصف
containerTنوع قالب حاوية بنمط STL مع معاملين قالب: نوع العنصر ونوع المخصص.
Tنوع العنصر.
Allocatorنوع المخصص.
ParameterTypeالوصف
حاويةconst containterT<T, Allocator>&الحاوية للبحث فيها.
الفهرسintفهرس بداية نطاق البحث.
countintطول نطاق البحث.
valueTالقيمة للبحث عنها.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&كائن Comparer.

ReturnValue

إذا تم العثور عليها، فمؤشر العنصر التالي؛ وإلا، مكملات المؤشر الذي توقفت عنده عملية البحث.

انظر أيضًا