Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
132 / 187
What is function object?
Answer:
An object of a class with an application operator is called a function. Like object, a function or simply functions object. Consequently, function objects often execute faster than do ordinary function.
(or)
An object that acts like a function is often called function like object (or) simply function. Such function objects are important because they allow us to write code that takes operations as parameters.
Asked In ::
Anjani
23 Feb, 2019 5:07 AM
An object of a class with an application operator is called a function. Like object, a function or simply functions object. Consequently, function objects often execute faster than do ordinary function.
(or)
An object that acts like a function is often called function like object (or) simply function. Such function objects are important because they allow us to write code that takes operations as parameters.
(or)
An object that acts like a function is often called function like object (or) simply function. Such function objects are important because they allow us to write code that takes operations as parameters.