测试是否在与指定的值相等或与其实际上是等效的二进制谓词指定的排序的范围的元素。
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/算法>
命名空间: cliext