binary_search (STL/CLR)

測試是否等於指定值,或是二元述詞所指定的角度來說等於排序範圍中沒有項目。

template<class _FwdIt, class _Ty> inline
    bool binary_search(_FwdIt _First, _FwdIt _Last, const _Ty% _Val);
template<class _FwdIt, class _Ty, class _Pr> inline
    bool binary_search(_FwdIt _First, _FwdIt _Last,
        const _Ty% _Val, _Pr _Pred);

備註

這個函式行為和 STL 函式一樣binary_search。如需詳細資訊,請參閱 binary_search

需求

標頭: < cliext/演算法 >

Namespace: cliext

請參閱

參考

algorithm (STL/CLR)