搜索在指定数量的元素具有特定的值或关系对该指定的值由二进制谓词的第一 subsequence。
template<class _FwdIt1, class _Diff2, class _Ty> inline
_FwdIt1 search_n(_FwdIt1 _First1, _FwdIt1 _Last1,
_Diff2 _Count, const _Ty& _Val);
template<class _FwdIt1, class _Diff2, class _Ty, class _Pr> inline
_FwdIt1 search_n(_FwdIt1 _First1, _FwdIt1 _Last1,
_Diff2 _Count, const _Ty& _Val, _Pr _Pred);
备注
此功能相同的行为就如同 STL 功能 search_n的。有关更多信息,请参见 search_n。
要求
标题: <cliext/算法>
命名空间: cliext