Jun 27, 2013 at 7:07pm UTC
when we have to use a function object in our code?
Jun 27, 2013 at 7:11pm UTC
vlad from moscow
Usually with standard algorithms.
Jun 27, 2013 at 7:15pm UTC
Or whenever you need a function that behaves as an object as well.
EDIT: Or an object that behaves as a function.
Last edited on
Jun 27, 2013 at 7:16pm UTC
Jun 27, 2013 at 7:32pm UTC
If your looking for examples on when you would use it, here are some:
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2013 - All rights reserved -
Spotted an error? contact us