3 ms·
cppreference.com uses the term functor in numerous places for recent C++ features including things in C++26 such as reflection: https://en.cppreference.com/w/c
by Maxatar 2y ago
cppreference.com uses the term functor in numerous places for recent C++ features including things in C++26 such as reflection:
https://en.cppreference.com/w/cpp/experimental/reflect https://en.cppreference.com/w/cpp/experimental/reflect
https://en.cppreference.com/w/cpp/utility/variant/visit2 https://en.cppreference.com/w/cpp/utility/variant/visit2
https://en.cppreference.com/w/cpp/experimental/parallelism https://en.cppreference.com/w/cpp/experimental/parallelism
Visual Studio's official documentation uses the term functor as of 2021:
https://learn.microsoft.com/en-us/cpp/standard-library/function-objects-in-the-stl?view=msvc-170 https://learn.microsoft.com/en-us/cpp/standard-library/funct...
A simple Google search shows no shortage of recent websites and documents including fairly authoritative references using the term functor to describe a type that overloads operator ().
Heck even the author of this article, Raymond Chen, uses the term functor as recently as 2020 to describe such a construct:
https://devblogs.microsoft.com/oldnewthing/20200513-00/?p=103745 https://devblogs.microsoft.com/oldnewthing/20200513-00/?p=10...
Is Raymond Chen not a C++ expert?