The requested page is not available for the requested platform. You are viewing the content for Default platform.

Use typedef (C++)

Converts a macro that declares an alias for a type into a typedef declaration.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is anywhere within a type alias definition preprocessor macro.

Examples

#define MyInt int

Result:

typedef int MyInt;

Screenshot

rsUseTypedefCPP