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/algorithm>

命名空间: cliext

请参见

参考

algorithm (STL/CLR)