Function specifiers
The available function specifiers for function
definitions are:
- constexpr, which can be used to declare constexpr functions and constexpr constructors, and is described in The constexpr specifier (C++11).
- inline, which instructs the compiler to expand a function definition at the point of a function call.
- __cdecl, which sets linkage conventions for C++ function calls to C functions.
- _Export, which makes function definitions available to other modules.
- explicit, which can only be used for member functions of classes, and is described in Explicit conversion constructors (C++ only).
- _Noreturn, which indicates that a function does not return to its caller.
- virtual, which can only be used for member functions of classes, and is described in Virtual functions (C++ only).