如果你有一个合适的可调用对象,那么复制可以是条件性的,通过逐个条目地测试该条件:std::copy_if(src.begin(),src.end(),desti.begin(),IsOdd)

最后修改: 2025年01月30日 星期四 15:53