Skip to main content
added 4 characters in body
Source Link
ThomasMcLeod
  • 7.7k
  • 4
  • 44
  • 80

yesYes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are not passing an address of a function at all, you are passing (copying) an object. functor objects have no data members, only an operator ( ).

yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are passing an address of a function at all, you are passing (copying) an object. functor objects have no data members, only an operator ( ).

Yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are not passing an address of a function at all, you are passing (copying) an object. functor objects have no data members, only an operator ( ).

added 1 characters in body
Source Link
ThomasMcLeod
  • 7.7k
  • 4
  • 44
  • 80

yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are passing an address of a function at all, you are passing (copying) an object. functor objectobjects have no data members, only an operator ( ).

yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are passing an address of a function at all, you are passing (copying) an object. functor object have no data members, only an operator ( ).

yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are passing an address of a function at all, you are passing (copying) an object. functor objects have no data members, only an operator ( ).

Source Link
ThomasMcLeod
  • 7.7k
  • 4
  • 44
  • 80

yes, that's correct. The function call operator is applied to the name of the object, not a method of the object. Furthermore, you are passing an address of a function at all, you are passing (copying) an object. functor object have no data members, only an operator ( ).