Function object

Jun 27, 2013 at 7:07pm
when we have to use a function object in our code?
Jun 27, 2013 at 7:11pm
Usually with standard algorithms.
Jun 27, 2013 at 7:15pm
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
Jun 27, 2013 at 7:32pm
If your looking for examples on when you would use it, here are some:

http://www.cprogramming.com/tutorial/functors-function-objects-in-c++.html
Topic archived. No new replies allowed.