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तत्व प्रकार।
Allocatorअलोकेटर प्रकार।
पैरामीटरप्रकारविवरण
कंटेनरconst 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तत्व प्रकार।
Allocatorअलोकेटर प्रकार।
पैरामीटरप्रकारविवरण
कंटेनरconst 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तत्व प्रकार।
Allocatorअलोकेटर प्रकार।
पैरामीटरप्रकारविवरण
कंटेनरconst 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तत्व प्रकार।
Allocatorअलोकेटर प्रकार।
पैरामीटरप्रकारविवरण
कंटेनरconst containterT<T, Allocator>&जिस कंटेनर में खोज करनी है।
सूचकांकintखोज सीमा की प्रारंभिक इंडेक्स।
countintखोज सीमा की लंबाई।
मानTखोजने के लिए मान।
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer ऑब्जेक्ट।

ReturnValue

यदि मिला, तो अगले तत्व का सूचकांक; अन्यथा, उस सूचकांक का पूरक जहाँ खोज रुक गई।

संबंधित देखें