Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Keyword

 

Keywords are the words that 'do' something. These words therefore cannot be used as variable names. In many C++ IDE's, these appear in bold.

 

int if = 3; //ERROR!

 

List of all keywords

 

Some keywords are only accepted by some standards:

 

  1.  C++0x alignas
  2.  C++0x alignof
  3. C++98C++0x asm
  4. C++98C++0x auto
  5. C++98C++0x bool
  6. C++98C++0x break
  7. C++98C++0x case
  8. C++98C++0x catch
  9. C++98C++0x char
  10.  C++0x char16_t
  11.  C++0x char32_t
  12. C++98C++0x class
  13. C++98C++0x const
  14.  C++0x constexpr
  15. C++98C++0x const_cast
  16. C++98C++0x continue
  17.  C++0x decltype
  18. C++98C++0x default
  19. C++98C++0x delete
  20. C++98C++0x do
  21. C++98C++0x double
  22. C++98C++0x dynamic_cast
  23. C++98C++0x else
  24. C++98C++0x enum
  25.  C++0x enum class
  26. C++98C++0x explicit
  27. C++98C++0x export
  28. C++98C++0x extern
  29.  C++0x extern template
  30. C++98C++0x false
  31. C++98C++0x float
  32. C++98C++0x for
  33. C++98C++0x friend
  34. C++98C++0x goto
  35. C++98C++0x if
  36. C++98C++0x inline
  37. C++98C++0x int
  38. C++98C++0x long
  39. C++98C++0x mutable
  40. C++98C++0x namespace
  41. C++98C++0x new
  42.  C++0x noexcept
  43.  C++0x nullptr
  44. C++98C++0x operator
  45. C++98C++0x private
  46. C++98C++0x protected
  47. C++98C++0x public
  48. C++98C++0x register
  49. C++98C++0x reinterpret_cast
  50. C++98C++0x return
  51. C++98C++0x short
  52. C++98C++0x signed
  53. C++98C++0x sizeof
  54. C++98C++0x static
  55.  C++0x static_assert
  56. C++98C++0x static_cast
  57. C++98C++0x struct
  58. C++98C++0x switch
  59. C++98C++0x template
  60. C++98C++0x this
  61.  C++0x thread_local
  62. C++98C++0x throw
  63. C++98C++0x true
  64. C++98C++0x try
  65. C++98C++0x typedef
  66. C++98C++0x typeid
  67. C++98C++0x typename
  68. C++98C++0x union
  69. C++98C++0x unsigned
  70. C++98C++0x using
  71. C++98C++0x virtual
  72. C++98C++0x void
  73. C++98C++0x volatile
  74. C++98C++0x wchar_t
  75. C++98C++0x while

 

 

 

 

 

References

 

  1. Bjarne Stroustrup. The C++ Programming Language (3rd edition). 1997. ISBN: 0-201-88954-4.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict