Skip to content

Latest commit

 

History

History
23 lines (11 loc) · 204 Bytes

functors.md

File metadata and controls

23 lines (11 loc) · 204 Bytes

functors

A functor is a class which overloads the operator() method.

class Functor

{

public:

     Functor(){ }

     int operator()

     {

          return 1;

     }

};