Non-Static Member Functions

suggest change

Syntax

- virt-specifier ret_type member_function() cv-qualifiers virt-specifier-seq;
- // virt-specifier: "virtual", if applicable.
- // cv-qualifiers: "const" and/or "volatile", if applicable.
- // virt-specifier-seq: "override" and/or "final", if applicable.

Remarks

A non-static member function is a class/struct/union member function, which is called on a particular instance, and operates on said instance. Unlike static member functions, it cannot be called without specifying an instance.

For information on classes, structures, and unions, please see the parent topic.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents