Monday 26 January 2009

Keywords in C++

C++'s keywords are a superset of C's keywords. Here is a list of all keywords of the language:

 and        const     float         operator static_cast    using
and_eq const_cast for or struct virtual
asm continue friend or_eq switch void
auto default goto private template volatile
bitand delete if protected this wchar_t
bitor do inline public throw while
bool double int register true xor
break dynamic_cast long reinterpret_cast try xor_eq
case else mutable return typedef
catch enum namespace short typeid
char explicit new signed typename
class extern not sizeof union
compl false not_eq static unsigned

Note the
operator keywords: and, and_eq, bitand, bitor, compl,
not, not_eq, or, or_eq, xor
and xor_eq are symbolic alternatives for,
respectively, &&, &=, &, |, ~, !, !=, ||, |=, ^ and ^=.

0 comments: