cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Function object
Function object
Jun 27, 2013 at 7:07pm UTC
Deep India
(2)
when we have to use a function object in our code?
Jun 27, 2013 at 7:11pm UTC
vlad from moscow
(6539)
Usually with standard algorithms.
Jun 27, 2013 at 7:15pm UTC
Thumper
(918)
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
pata
(67)
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.