0

Why are function object base classes (unary_function, binary_function), adaptors (pointer_to_unary_function, pointer_to_binary_function, ...) and binders(binder1st, binder2nd, ...) deprecated(C++11) and removed(C++17) ?

pasha
  • 2,035
  • 20
  • 34
  • 5
    [`std::function`](https://en.cppreference.com/w/cpp/utility/functional/function) and [closures](https://en.cppreference.com/w/cpp/language/lambda) (lambda expresions) cover pretty much all your bases. – François Andrieux Feb 11 '19 at 18:38
  • 1
    related/dupe: https://stackoverflow.com/questions/22386882/why-have-unary-function-binary-function-been-removed-from-c11. https://stackoverflow.com/questions/33114656/replacement-for-binary-function – NathanOliver Feb 11 '19 at 18:40
  • Thanks @Francois for the answer and thanks NathanOliver for pointing other question – pasha Feb 11 '19 at 18:45

0 Answers0