System::Collections::Generic::_net_binnary_search methode

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

Implementeert binaire zoekopdracht in een random-access container. Specialisatie voor slimme pointers. Gebruikt System::Object::CompareTo methode.

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)
ParameterBeschrijving
containerTSTL-achtige containertemplate-type met twee template-argumenten: elementtype en allocator-type.
TElementtype.
AllocatorAllocator-type.
ParameterTypeBeschrijving
containerconst containterT<T, Allocator>&Container om in te zoeken.
indexintBeginindex van zoekbereik.
countintLengte van zoekbereik.
valueTWaarde om naar te zoeken.

ReturnValue

Indien gevonden, index van het volgende element; anders, complement van de index waarop de zoekopdracht stopte.

Zie ook

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

Implementeert binaire zoekopdracht in een random-access container. Specialisatie voor waardetypen. Gebruikt CompareTo methode.

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)
ParameterBeschrijving
containerTSTL-achtige containertemplate-type met twee template-argumenten: elementtype en allocator-type.
TElementtype.
AllocatorAllocator-type.
ParameterTypeBeschrijving
containerconst containterT<T, Allocator>&Container om in te zoeken.
indexintBeginindex van zoekbereik.
countintLengte van zoekbereik.
valueTWaarde om naar te zoeken.

ReturnValue

Indien gevonden, index van het volgende element; anders, complement van de index waarop de zoekopdracht stopte.

Zie ook

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

Implementeert binaire zoekopdracht in een random-access container. Specialisatie voor scalairen. Vergelijkt elementen met behulp van groter- en kleiner-operatoren.

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)
ParameterBeschrijving
containerTSTL-achtige containertemplate-type met twee template-argumenten: elementtype en allocator-type.
TElementtype.
AllocatorAllocator-type.
ParameterTypeBeschrijving
containerconst containterT<T, Allocator>&Container om in te zoeken.
indexintBeginindex van zoekbereik.
countintLengte van zoekbereik.
valueTWaarde om naar te zoeken.

ReturnValue

Indien gevonden, index van het volgende element; anders, complement van de index waarop de zoekopdracht stopte.

Zie ook

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

Implementeert binaire zoekopdracht in een random-access container.

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)
ParameterBeschrijving
containerTSTL-achtige containertemplate-type met twee template-argumenten: elementtype en allocator-type.
TElementtype.
AllocatorAllocator-type.
ParameterTypeBeschrijving
containerconst containterT<T, Allocator>&Container om in te zoeken.
indexintBeginindex van zoekbereik.
countintLengte van zoekbereik.
valueTWaarde om naar te zoeken.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer object.

ReturnValue

Indien gevonden, index van het volgende element; anders, complement van de index waarop de zoekopdracht stopte.

Zie ook