C++标准库和/或Boost是否与filter函数式语言中的函数类似?
filter
我能找到的最接近的功能是std::remove_copy_if它似乎与我想要的相反.是否boost::lambda有任何函数来获取我的谓词的否定版本(类似于notHaskell)?我可以否定我的谓词并std::remove_copy_if随之使用它.
std::remove_copy_if
boost::lambda
not
请注意,我不是在问如何filter用C++ 编写函数; 我只想问标准库和/或Boost是否已经提供了这样的功能.
提前致谢.
c++ functional-programming higher-order-functions
c++ ×1
functional-programming ×1
higher-order-functions ×1