How do I document a functional object (AKA functor) using doxygen? It seems to me that misleading is just to document it as a regular class. Iām much better off thinking of a functional object as a function with closure than a called class.
Is there a way to document a function object that matches my preference?
class Adder { public: Adder( size_t x ) : m_x(x) { } size_t operator () ( size_t y ) const { return m_x + y; } private: const size_t m_x; };
c ++ functor function-object doxygen
deft_code
source share