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.
List of all keywords
Some keywords are only accepted by some standards:
- alignas
- alignof
- asm
- auto
- bool
- break
- case
- catch
- char
- char16_t
- char32_t
- class
- const
- constexpr
- const_cast
- continue
- decltype
- default
- delete
- do
- double
- dynamic_cast
- else
- enum
- enum class
- explicit
- export
- extern
- extern template
- false
- final
- float
- for
- friend
- goto
- if
- inline
- int
- long
- mutable
- namespace
- new
- noexcept
- nullptr
- operator
- private
- protected
- public
- register
- reinterpret_cast
- return
- short
- signed
- sizeof
- static
- static_assert
- static_cast
- struct
- switch
- template
- this
- thread_local
- throw
- true
- try
- typedef
- typeid
- typename
- union
- unsigned
- using
- virtual
- void
- volatile
- wchar_t
- while
- Bjarne Stroustrup. The C++ Programming Language (3rd edition). 1997. ISBN: 0-201-88954-4.