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

Last modified: Thursday, 30 January 2025, 3:53 PM