11---
22title : " Keywords (C++) | Microsoft Docs"
33ms.custom : " index-page"
4- ms.date : " 09/18 /2018"
4+ ms.date : " 09/24 /2018"
55ms.technology : ["cpp-language"]
66ms.topic : " language-reference"
77dev_langs : ["C++"]
@@ -15,8 +15,8 @@ ms.workload: ["cplusplus"]
1515
1616Keywords are predefined reserved identifiers that have special meanings. They cannot be used as identifiers in your program. The following keywords are reserved for Microsoft C++. Names with leading underscores are Microsoft extensions.
1717
18- ||||
19- | -| -| -|
18+ |||||
19+ | -| -| -| - |
2020| [ __ abstract] ( ../dotnet/declaration-of-a-managed-class-type.md ) <sup >2</sup >| [ __ alignof Operator] ( alignof-operator.md ) | [ __ asm] ( ../assembler/inline/asm.md ) | [ __ assume] ( ../intrinsics/assume.md ) |
2121| [ __ based] ( based-pointers-cpp.md ) | [ __ box] ( ../dotnet/value-type-semantics.md ) <sup >2</sup >| [ __ cdecl] ( cdecl.md ) | [ __ declspec] ( declspec.md ) |
2222| [ __ delegate] ( ../dotnet/delegates-and-events.md ) <sup >2</sup >| [ __ event] ( event.md ) | [ __ except] ( try-except-statement.md ) | [ __ fastcall] ( fastcall.md ) |
@@ -25,8 +25,9 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
2525| [ __ int16] ( int8-int16-int32-int64.md ) | [ __ int32] ( int8-int16-int32-int64.md ) | [ __ int64] ( int8-int16-int32-int64.md ) | [ __ int8] ( int8-int16-int32-int64.md ) |
2626| [ __ interface] ( interface.md ) | [ __ leave] ( try-finally-statement.md ) | [ __ m128] ( m128.md ) | [ __ m128d] ( m128d.md ) |
2727| [ __ m128i] ( m128i.md ) | [ __ m64] ( m64.md ) | [ __ multiple_inheritance] ( inheritance-keywords.md ) | [ __ nogc] ( ../dotnet/declaration-of-a-clr-reference-class-object.md ) <sup >2</sup >|
28- | [ __ noop] ( ../intrinsics/noop.md ) | ** __ pin** <sup >2</sup >| ** __ property** <sup >2</sup >| [ __ raise] ( raise.md ) | ** __ sealed** <sup >2</sup >| [ __ single_inheritance] ( inheritance-keywords.md ) | [ __ stdcall] ( stdcall.md ) | [ __ super] ( super.md ) |
29- | [ __ thiscall] ( thiscall.md ) | [ __ try/\_ _ except] ( try-except-statement.md ) | [ __ try/\_ _ finally] ( try-finally-statement.md ) | [ __ try_cast] ( ../dotnet/cast-notation-and-introduction-of-safe-cast-angles.md ) <sup >2</sup >|
28+ | [ __ noop] ( ../intrinsics/noop.md ) | ** __ pin** <sup >2</sup >| ** __ property** <sup >2</sup >| [ __ raise] ( raise.md ) |
29+ | ** __ sealed** <sup >2</sup >| [ __ single_inheritance] ( inheritance-keywords.md ) | [ __ stdcall] ( stdcall.md ) | [ __ super] ( super.md ) |
30+ | [ __ thiscall] ( thiscall.md ) | [ __ try/\_ _ except] ( try-except-statement.md ) | [ __ try/\_ _ finally] ( try-finally-statement.md ) | [ __ try_cast] ( ../dotnet/cast-notation-and-introduction-of-safe-cast-angles.md ) <sup >2</sup >|
3031| [ __ unaligned] ( unaligned.md ) | [ __ unhook] ( unhook.md ) <sup >3</sup >| [ __ uuidof] ( uuidof-operator.md ) | [ __ value] ( ../dotnet/value-type-semantics.md ) <sup >2</sup >|
3132| [ __ virtual_inheritance] ( inheritance-keywords.md ) | [ __ w64] ( w64.md ) | [ __ wchar_t] ( fundamental-types-cpp.md ) | [ abstract] ( ../windows/abstract-cpp-component-extensions.md ) |
3233| [ alignas] ( align-cpp.md ) | [ array] ( ../windows/arrays-cpp-component-extensions.md ) | [ auto] ( auto-keyword.md ) | [ bool] ( bool-cpp.md ) |
@@ -38,26 +39,26 @@ Keywords are predefined reserved identifiers that have special meanings. They ca
3839| [ dynamic_cast] ( dynamic-cast-operator.md ) | [ else] ( if-else-statement-cpp.md ) | [ enum] ( enumerations-cpp.md ) | [ enum class] ( ../windows/enum-class-cpp-component-extensions.md ) |
3940| [ enum struct] ( ../windows/enum-class-cpp-component-extensions.md ) | [ event] ( ../windows/event-cpp-component-extensions.md ) | [ explicit] ( user-defined-type-conversions-cpp.md ) | [ extern] ( using-extern-to-specify-linkage.md ) |
4041| [ false] ( false-cpp.md ) | [ finally] ( ../dotnet/finally.md ) | [ float] ( fundamental-types-cpp.md ) | [ for] ( for-statement-cpp.md ) |
41- | [ for each in] ( ../dotnet/for-each-in.md ) | [ friend] ( friend-cpp.md ) | [ friend_as] ( ../preprocessor/hash-using-directive-cpp.md ) |
42- | [ gcnew] ( ../windows/ref-new-gcnew-cpp-component-extensions.md ) | [ generic] ( ../windows/generics-cpp-component-extensions.md ) | [ goto] ( goto-statement-cpp.md ) | [ if] ( if-else-statement-cpp.md ) |
43- | [ initonly] ( ../dotnet/initonly-cpp-cli.md ) | [ inline] ( inline-functions-cpp.md ) | [ int] ( fundamental-types-cpp.md ) | [ interface class] ( ../windows/interface-class-cpp-component-extensions.md ) |
44- | [ interface struct] ( ../windows/interface-class-cpp-component-extensions.md ) | [ interior_ptr] ( ../windows/interior-ptr-cpp-cli.md ) | [ literal] ( ../windows/literal-cpp-component-extensions.md ) | [ long] ( fundamental-types-cpp.md ) |
45- | [ mutable] ( mutable-data-members-cpp.md ) | [ naked] ( naked-cpp.md ) <sup >1</sup >| [ namespace] ( namespaces-cpp.md ) | [ new] ( ../windows/new-new-slot-in-vtable-cpp-component-extensions.md ) |
46- | [ new] ( new-operator-cpp.md ) | [ noexcept] ( noexcept-cpp.md ) | [ noinline] ( noinline.md ) <sup >1</sup >| [ noreturn] ( noreturn.md ) <sup >1</sup >|
47- | [ nothrow] ( nothrow-cpp.md ) <sup >1</sup >| [ novtable] ( novtable.md ) <sup >1</sup >| [ nullptr] ( nullptr.md ) | [ operator] ( operator-overloading.md ) |
48- | [ private] ( private-cpp.md ) | [ property] ( ../windows/property-cpp-component-extensions.md ) | [ property] ( property-cpp.md ) <sup >1</sup >| [ protected] ( protected-cpp.md ) |
49- | [ public] ( public-cpp.md ) | [ ref class] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ ref struct] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ register] ( storage-classes-cpp.md#register ) |
50- | [ reinterpret_cast] ( reinterpret-cast-operator.md ) | [ return] ( return-statement-cpp.md ) | [ safecast] ( ../windows/safe-cast-cpp-component-extensions.md ) | [ sealed] ( ../windows/sealed-cpp-component-extensions.md ) |
51- | [ selectany] ( selectany.md ) <sup >1</sup >| [ short] ( fundamental-types-cpp.md ) | [ signed] ( fundamental-types-cpp.md ) | [ sizeof] ( sizeof-operator.md ) |
52- | [ static] ( storage-classes-cpp.md ) | [ static_assert] ( static-assert.md ) | [ static_cast] ( static-cast-operator.md ) | [ struct] ( struct-cpp.md ) |
53- | [ switch] ( switch-statement-cpp.md ) | [ template] ( templates-cpp.md ) | [ this] ( this-pointer.md ) | [ thread] ( thread.md ) <sup >1</sup >|
54- | [ throw] ( try-throw-and-catch-statements-cpp.md ) | [ true] ( true-cpp.md ) | [ try] ( try-throw-and-catch-statements-cpp.md ) | [ typedef] ( aliases-and-typedefs-cpp.md ) |
55- | [ typeid] ( typeid-operator.md ) | [ typeid] ( ../windows/typeid-cpp-component-extensions.md ) | [ typename] ( typename.md ) | [ union] ( unions.md ) |
56- | [ unsigned] ( fundamental-types-cpp.md ) | [ using] ( using-declaration.md ) declaration| [ using] ( namespaces-cpp.md#using_directives ) directive|
57- | [ uuid] ( uuid-cpp.md ) <sup >1</sup >| [ value class] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ value struct] ( ../windows/classes-and-structs-cpp-component-extensions.md ) |
58- | [ virtual] ( virtual-cpp.md ) | [ void] ( void-cpp.md ) | [ volatile] ( volatile-cpp.md ) |
42+ | [ for each in] ( ../dotnet/for-each-in.md ) | [ friend] ( friend-cpp.md ) | [ friend_as] ( ../preprocessor/hash-using-directive-cpp.md ) | [ gcnew] ( ../windows/ref-new-gcnew-cpp-component-extensions.md ) |
43+ | [ generic] ( ../windows/generics-cpp-component-extensions.md ) | [ goto] ( goto-statement-cpp.md ) | [ if] ( if-else-statement-cpp.md ) | [ initonly] ( ../dotnet/initonly-cpp-cli.md ) |
44+ | [ inline] ( inline-functions-cpp.md ) | [ int] ( fundamental-types-cpp.md ) | [ interface class] ( ../windows/interface-class-cpp-component-extensions.md ) | [ interface struct] ( ../windows/interface-class-cpp-component-extensions.md ) |
45+ | [ interior_ptr] ( ../windows/interior-ptr-cpp-cli.md ) | [ literal] ( ../windows/literal-cpp-component-extensions.md ) | [ long] ( fundamental-types-cpp.md ) | [ mutable] ( mutable-data-members-cpp.md ) |
46+ | [ naked] ( naked-cpp.md ) <sup >1</sup >| [ namespace] ( namespaces-cpp.md ) | [ new] ( ../windows/new-new-slot-in-vtable-cpp-component-extensions.md ) | [ new] ( new-operator-cpp.md ) |
47+ | [ noexcept] ( noexcept-cpp.md ) | [ noinline] ( noinline.md ) <sup >1</sup >| [ noreturn] ( noreturn.md ) <sup >1</sup >| [ nothrow] ( nothrow-cpp.md ) <sup >1</sup >|
48+ | [ novtable] ( novtable.md ) <sup >1</sup >| [ nullptr] ( nullptr.md ) | [ operator] ( operator-overloading.md ) | [ private] ( private-cpp.md ) |
49+ | [ property] ( ../windows/property-cpp-component-extensions.md ) | [ property] ( property-cpp.md ) <sup >1</sup >| [ protected] ( protected-cpp.md ) | [ public] ( public-cpp.md ) |
50+ | [ ref class] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ ref struct] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ register] ( storage-classes-cpp.md#register ) | [ reinterpret_cast] ( reinterpret-cast-operator.md ) |
51+ | [ return] ( return-statement-cpp.md ) | [ safecast] ( ../windows/safe-cast-cpp-component-extensions.md ) | [ sealed] ( ../windows/sealed-cpp-component-extensions.md ) | [ selectany] ( selectany.md ) <sup >1</sup >|
52+ | [ short] ( fundamental-types-cpp.md ) | [ signed] ( fundamental-types-cpp.md ) | [ sizeof] ( sizeof-operator.md ) | [ static] ( storage-classes-cpp.md ) |
53+ | [ static_assert] ( static-assert.md ) | [ static_cast] ( static-cast-operator.md ) | [ struct] ( struct-cpp.md ) | [ switch] ( switch-statement-cpp.md ) |
54+ | [ template] ( templates-cpp.md ) | [ this] ( this-pointer.md ) | [ thread] ( thread.md ) <sup >1</sup >| [ throw] ( try-throw-and-catch-statements-cpp.md ) |
55+ | [ true] ( true-cpp.md ) | [ try] ( try-throw-and-catch-statements-cpp.md ) | [ typedef] ( aliases-and-typedefs-cpp.md ) | [ typeid] ( typeid-operator.md ) |
56+ | [ typeid] ( ../windows/typeid-cpp-component-extensions.md ) | [ typename] ( typename.md ) | [ union] ( unions.md ) | [ unsigned] ( fundamental-types-cpp.md ) |
57+ | [ using] ( using-declaration.md ) declaration| [ using] ( namespaces-cpp.md#using_directives ) directive| [ uuid] ( uuid-cpp.md ) <sup >1</sup >| [ value class] ( ../windows/classes-and-structs-cpp-component-extensions.md ) |
58+ | [ value struct] ( ../windows/classes-and-structs-cpp-component-extensions.md ) | [ virtual] ( virtual-cpp.md ) | [ void] ( void-cpp.md ) | [ volatile] ( volatile-cpp.md ) |
5959| [ while] ( while-statement-cpp.md ) |
6060
61+
61621 Extended attributes for the ** __ declspec** keyword.
6263
63642 Applicable to Managed Extensions for C++ only. This syntax is now deprecated.
0 commit comments