Boost has overloaded operators for boost::bind result type. So !bind(f, ...)
is equivalent to bind( logical_not(), bind(f, ...) )
. Some other operators like ||, && can be used as well. Does std::bind have the same features? Can one use !std::bind(...)
? Is std::not1
deprecated in c++11?
Asked
Active
Viewed 168 times
0

Pavel Davydov
- 3,379
- 3
- 28
- 41
-
1No, nothing similar is defined by the standard. – Daniel Frey Sep 11 '13 at 15:50
-
Thanks for your answer. So one should still use std::not1 instead of not operator for std::bind? Is there a better way? – Pavel Davydov Sep 11 '13 at 16:02
-
2I'd suggest you consider using lambdas. `bind` was basically just a work-around for the lack of lambdas back then. – Daniel Frey Sep 11 '13 at 16:04