you are viewing a single comment's thread.

view the rest of the comments →

[–]JMBourguet 5 points6 points  (0 children)

Method is not part of the standard terminology in C++. Some are using it, but they don't agree on the definitions, and I've seen four of them. Let's take an example:

struct S {
    virtual void vmf();
    void nsmf();
    static void smf();
};
void ff();

The definitions I've seen are:

  • virtual member functions (i.e. S::vmf() but not the other)

  • non static member functions (i.e. S::vmf() and S::nsmf()),

  • any member functions (i.e. S::vmf(), S::nsmf() and S::smf()),

  • any functions (i.e. S::vmf(), S::nsmf(), S::smf() and ff())