Top "Function-object" questions

In object-oriented languages, function object (also known as functor) is a feature that allows objects to be used like if they were ordinary functions.

What are C++ functors and their uses?

I keep hearing a lot about functors in C++. Can someone give me an overview as to what they are …

c++ functor function-object function-call-operator
Build a function object with properties in TypeScript

I want to create a function object, which also has some properties held on it. For example in JavaScript I …

casting typescript function-object
How does the template parameter of std::function work? (implementation)

In Bjarne Stroustrup's home page (C++11 FAQ): struct X { int foo(int); }; std::function<int(X*, int)> f; …

c++ templates c++11 function-pointers function-object
Declaring function objects for comparison?

I have seen other people questions but found none that applied to what I'm trying to achieve here. I'm trying …

c++ operators operator-keyword function-object
How can it be useful to overload the "function call" operator?

I recently discovered that in C++ you can overload the "function call" operator, in a strange way in which you …

c++ operator-overloading functor function-object
Creating a function object from a string

Question: Is there a way to make a function object in python using strings? Info: I'm working on a project …

python code-generation python-2.x function-object