Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Boost为 boost::bind 结果类型重载了运算符。所以!bind(f, ...)等价于bind( logical_not(), bind(f, ...) )。也可以使用其他一些运算符,如 ||、&&。std::bind 是否具有相同的功能?一个可以用!std::bind(...)吗?std::not1在 c++11 中被弃用了吗?
!bind(f, ...)
bind( logical_not(), bind(f, ...) )
!std::bind(...)
std::not1