如何模拟不存在的find_first_not_of函数?

Arm*_*yan 10 c++ stl standard-library

std::basic_string类模板有成员函数find_first_offind_first_not_of.

<algorithm>头,但只包含一个通用find_first_of.

问题1:是否缺席

std::find_first_not_of(Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2)
Run Code Online (Sandbox Code Playgroud)

只是疏忽(例如copy_if)或是故意省略,因为行为可以通过另一个标准功能实现?

当然我可以写自己的find_first_not_of,但是

问题2:某处有一个现成的解决方法<algorithm>吗?例如,缺席由于存在而copy_if得到补偿remove_copy_if

提前致谢

Aja*_*jay 0

最新的STL中添加了新的功能(跳转到)。

all_ofany_ofnone_offind_if_notcopy_ifETC。