Function specifiers

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