c++ - 这个std::adjacent_find的等价实现是正确的吗? - Segment...
在ClassFoo网站看到std::adjacent_find的等价实现,感觉代码有一点点错误,不知道是不是我的错觉 template<class _FwdIt, class _Pr> inline _FwdIt _Adjacent_find(_FwdIt _First, _FwdIt _Last, _Pr _Pred) { // find first satisfying _Pred with successor if (_First != _Last) for (_FwdIt _...