C++C++11C++14C++17Learn C++

What Is A Function Object Functor In C++?

In modern C++ programming we can use many different ways to call functions. One of the features from C11 is functor, an early function object in C++. The functor function objects are callable objects. A functor or function object is any object for which the function call operator is defined. Let’s learn what a functor is and how we can use a functor in C++. What is a functor in…
Read more