添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
闷骚的黑框眼镜  ·  Talend·  2 月前    · 
帅气的青蛙  ·  yuzukitty – AoE4 World·  7 月前    · 
开朗的皮带  ·  下载 .NET Framework | ...·  9 月前    · 
踢足球的洋葱  ·  Android – ...·  1 年前    · 
Filesystem library (C++17) Regular expressions library (C++11) Concurrency support library (C++11) Technical specifications Symbols index External libraries
[edit]
C++ language
General topics Preprocessor Comments Keywords Escape sequences Flow control Conditional execution statements switch Iteration statements (loops) range- for (C++11) while do-while Jump statements continue - break goto - return Functions Function declaration Lambda function expression inline specifier Dynamic exception specifications ( until C++17* ) noexcept specifier (C++11) Exceptions throw -expression try block handler Namespaces Namespace declaration Namespace aliases Types Fundamental types Enumeration types Function types Class/struct types Union types Specifiers const / volatile decltype (C++11) auto (C++11) constexpr (C++11) consteval (C++20) constinit (C++20) Storage duration specifiers Initialization Default-initialization Value-initialization Zero-initialization Copy-initialization Direct-initialization Aggregate initialization List-initialization (C++11) Constant initialization Reference initialization Boolean - Integer - Floating-point Character - String - nullptr (C++11) User-defined (C++11) Utilities Attributes (C++11) Types typedef declaration Type alias declaration (C++11) Casts Implicit conversions static_cast const_cast Explicit conversions dynamic_cast reinterpret_cast Memory allocation new expression delete expression Classes Class declaration Constructors this pointer Access specifiers friend specifier Class-specific function properties Virtual function override specifier (C++11) final specifier (C++11) explicit (C++11) static Special member functions Default constructor Copy constructor Move constructor (C++11) Copy assignment Move assignment (C++11) Destructor Templates Class template Function template Template specialization Parameter packs (C++11) Miscellaneous Inline assembly History of C++

This is a list of reserved keywords in C++. Since they are used by the language, these keywords are not available for re-definition or overloading. As an exception, they are not considered reserved in attributes (excluding attribute argument lists). (since C++11)

  • (1) — meaning changed or new meaning added in C++11.
  • (2) — meaning changed or new meaning added in C++17.
  • (3) — meaning changed or new meaning added in C++20.
  • (4) — new meaning added in C++23.

    Note that and , bitor , or , xor , compl , bitand , and_eq , or_eq , xor_eq , not , and not_eq (along with the digraphs < % , % > , < : , : > , % : , and % : % : ) provide an alternative way to represent standard tokens . These keywords are also considered reserved in attributes (excluding attribute argument lists), but some implementations handle them the same as the others. (since C++11)

    In addition to keywords, there are identifiers with special meaning , which may be used as names of objects or functions, but have special meaning in certain contexts.

    Also, all identifiers that contain a double underscore __ in any position and each identifier that begins with an underscore followed by an uppercase letter is always reserved and all identifiers that begin with an underscore are reserved for use as names in the global namespace. See identifiers for more details.

    The namespace std is used to place names of the standard C++ library. See Extending namespace std for the rules about adding names to it.

    The name posix is reserved for a future top-level namespace. The behavior is undefined if a program declares or defines anything in that namespace. (since C++11)

    The following tokens are recognized by the preprocessor when in context of a preprocessor directive:

    Toolbox
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Page information
  • In other languages
  • العربية
  • Deutsch
  • Español
  • Français
  • Italiano
  • 日本語
  • 한국어
  • Polski
  • Português
  • Русский
  • 中文
  •