<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
 lang="en" dir="ltr">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>
    C++ Keywords    [C++ Reference]
  </title>

  <meta name="generator" content="DokuWiki Release 2009-12-25c &quot;Lemming&quot;" />
<meta name="robots" content="index,follow" />
<meta name="date" content="2009-09-28T06:49:57-0700" />
<meta name="keywords" content="keywords,start" />
<link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" />
<link rel="start" href="/wiki/" />
<link rel="contents" href="/wiki/keywords/start?do=index" title="Index" />
<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" />
<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&amp;ns=keywords" />
<link rel="edit" title="Edit this page" href="/wiki/keywords/start?do=edit" />
<link rel="alternate" type="text/html" title="Plain HTML" href="/wiki/_export/xhtml/keywords/start" />
<link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/keywords/start" />
<link rel="canonical" href="http://www.cppreference.com/wiki/keywords/start" />
<link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&amp;t=custom1&amp;tseed=1272971091" />
<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1&amp;tseed=1272971091" />
<link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&amp;t=custom1&amp;tseed=1272971091" />
<script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--
var NS='keywords';var JSINFO = {"id":"keywords:start","namespace":"keywords"};
//--><!]]></script>
<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?tseed=1272971091" ></script>

  <link rel="shortcut icon" href="/wiki/lib/tpl/custom1/images/favicon.png" />

  </head>

<body>
<div class="dokuwiki">
  
  <div class="stylehead">

    <div class="header">
      <div class="pagename">
        [[<a href="../keywords/start.html"  title="Backlinks">C++ Keywords</a>]]
      </div>
      <div class="logo">
        <a href="http://www.cppreference.com"  name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]">C++ Reference</a>      </div>

      <div class="clearer"></div>
    </div>

    
    
        <div class="breadcrumbs">
      <span class="bchead">You are here: </span><a href="../start.html"  title="start">C++ Reference</a> &raquo; <a href="../keywords/start.html"  title="keywords:start">C++ Keywords</a>    </div>
    
  </div>

<div class="plugin_translation"><span>Translations of this page<sup><a href="../localization.html" class="wikilink1" title="localization">?</a></sup>:</span> <ul>  <li><div class="li"><span class="curid"><a href="../keywords/start.html" class="wikilink1" title="keywords:start">en</a></span></div></li>  <li><div class="li"><a href="../br-pt/keywords/start.html" class="wikilink1" title="br-pt:keywords:start">br-pt</a></div></li>  <li><div class="li"><a href="../cn/keywords/start.html" class="wikilink1" title="cn:keywords:start">cn</a></div></li>  <li><div class="li"><a href="../cz/keywords/start.html" class="wikilink2" title="cz:keywords:start" rel="nofollow">cz</a></div></li>  <li><div class="li"><a href="../de/keywords/start.html" class="wikilink2" title="de:keywords:start" rel="nofollow">de</a></div></li>  <li><div class="li"><a href="../es/keywords/start.html" class="wikilink2" title="es:keywords:start" rel="nofollow">es</a></div></li>  <li><div class="li"><a href="../fr/keywords/start.html" class="wikilink1" title="fr:keywords:start">fr</a></div></li>  <li><div class="li"><a href="../it/keywords/start.html" class="wikilink1" title="it:keywords:start">it</a></div></li>  <li><div class="li"><a href="../jp/keywords/start.html" class="wikilink1" title="jp:keywords:start">jp</a></div></li>  <li><div class="li"><a href="../nl/keywords/start.html" class="wikilink2" title="nl:keywords:start" rel="nofollow">nl</a></div></li>  <li><div class="li"><a href="../pl/keywords/start.html" class="wikilink1" title="pl:keywords:start">pl</a></div></li>  <li><div class="li"><a href="../ro/keywords/start.html" class="wikilink2" title="ro:keywords:start" rel="nofollow">ro</a></div></li>  <li><div class="li"><a href="../ru/keywords/start.html" class="wikilink1" title="ru:keywords:start">ru</a></div></li>  <li><div class="li"><a href="../sk/keywords/start.html" class="wikilink2" title="sk:keywords:start" rel="nofollow">sk</a></div></li>  <li><div class="li"><a href="../tr/keywords/start.html" class="wikilink2" title="tr:keywords:start" rel="nofollow">tr</a></div></li>  <li><div class="li"><a href="../tw/keywords/start.html" class="wikilink2" title="tw:keywords:start" rel="nofollow">tw</a></div></li></ul></div>
  
  
  <div class="page">

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2828341-1";
urchinTracker();
</script>
    <!-- wikipage start -->
    


<h1><a name="c_keywords" id="c_keywords">C++ Keywords</a></h1>
<div class="level1">

<p>

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) by programmers.

</p>
<table class="inline">
	<tr class="row0">
		<th class="col0">Keyword</th><th class="col1">Description</th>
	</tr>
	<tr class="row1">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">and</a></td><td class="col1">alternative to &amp;&amp; operator</td>
	</tr>
	<tr class="row2">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">and_eq</a></td><td class="col1">alternative to &amp;= operator</td>
	</tr>
	<tr class="row3">
		<td class="col0"><a href="../keywords/asm.html" class="wikilink1" title="keywords:asm">asm</a></td><td class="col1">insert an assembly instruction</td>
	</tr>
	<tr class="row4">
		<td class="col0"><a href="../keywords/auto.html" class="wikilink1" title="keywords:auto">auto</a></td><td class="col1">declare a local variable</td>
	</tr>
	<tr class="row5">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">bitand</a></td><td class="col1">alternative to bitwise &amp; operator</td>
	</tr>
	<tr class="row6">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">bitor</a></td><td class="col1">alternative to | operator</td>
	</tr>
	<tr class="row7">
		<td class="col0"><a href="../keywords/bool.html" class="wikilink1" title="keywords:bool">bool</a></td><td class="col1">declare a boolean variable</td>
	</tr>
	<tr class="row8">
		<td class="col0"><a href="../keywords/break.html" class="wikilink1" title="keywords:break">break</a></td><td class="col1">break out of a loop</td>
	</tr>
	<tr class="row9">
		<td class="col0"><a href="../keywords/case.html" class="wikilink1" title="keywords:case">case</a></td><td class="col1">a block of code in a switch statement</td>
	</tr>
	<tr class="row10">
		<td class="col0"><a href="../keywords/catch.html" class="wikilink1" title="keywords:catch">catch</a></td><td class="col1">handles exceptions from throw</td>
	</tr>
	<tr class="row11">
		<td class="col0"><a href="../keywords/char.html" class="wikilink1" title="keywords:char">char</a></td><td class="col1">declare a character variable</td>
	</tr>
	<tr class="row12">
		<td class="col0"><a href="../keywords/class.html" class="wikilink1" title="keywords:class">class</a></td><td class="col1">declare a class</td>
	</tr>
	<tr class="row13">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">compl</a></td><td class="col1">alternative to ~ operator</td>
	</tr>
	<tr class="row14">
		<td class="col0"><a href="../keywords/const.html" class="wikilink1" title="keywords:const">const</a></td><td class="col1">declare immutable data or functions that do not change data</td>
	</tr>
	<tr class="row15">
		<td class="col0"><a href="../keywords/const_cast.html" class="wikilink1" title="keywords:const_cast">const_cast</a></td><td class="col1">cast from const variables</td>
	</tr>
	<tr class="row16">
		<td class="col0"><a href="../keywords/continue.html" class="wikilink1" title="keywords:continue">continue</a></td><td class="col1">bypass iterations of a loop</td>
	</tr>
	<tr class="row17">
		<td class="col0"><a href="../keywords/default.html" class="wikilink1" title="keywords:default">default</a></td><td class="col1">default handler in a case statement</td>
	</tr>
	<tr class="row18">
		<td class="col0"><a href="../keywords/delete.html" class="wikilink1" title="keywords:delete">delete</a></td><td class="col1">make dynamic memory available</td>
	</tr>
	<tr class="row19">
		<td class="col0"><a href="../keywords/do.html" class="wikilink1" title="keywords:do">do</a></td><td class="col1">looping construct</td>
	</tr>
	<tr class="row20">
		<td class="col0"><a href="../keywords/double.html" class="wikilink1" title="keywords:double">double</a></td><td class="col1">declare a double precision floating-point variable</td>
	</tr>
	<tr class="row21">
		<td class="col0"><a href="../keywords/dynamic_cast.html" class="wikilink1" title="keywords:dynamic_cast">dynamic_cast</a></td><td class="col1">perform runtime casts</td>
	</tr>
	<tr class="row22">
		<td class="col0"><a href="../keywords/else.html" class="wikilink1" title="keywords:else">else</a></td><td class="col1">alternate case for an if statement</td>
	</tr>
	<tr class="row23">
		<td class="col0"><a href="../keywords/enum.html" class="wikilink1" title="keywords:enum">enum</a></td><td class="col1">create enumeration types</td>
	</tr>
	<tr class="row24">
		<td class="col0"><a href="../keywords/explicit.html" class="wikilink1" title="keywords:explicit">explicit</a></td><td class="col1">only use constructors when they exactly match</td>
	</tr>
	<tr class="row25">
		<td class="col0"><a href="../keywords/export.html" class="wikilink1" title="keywords:export">export</a></td><td class="col1">allows template definitions to be separated from their declarations</td>
	</tr>
	<tr class="row26">
		<td class="col0"><a href="../keywords/extern.html" class="wikilink1" title="keywords:extern">extern</a></td><td class="col1">tell the compiler about variables defined elsewhere</td>
	</tr>
	<tr class="row27">
		<td class="col0"><a href="../keywords/false.html" class="wikilink1" title="keywords:false">false</a></td><td class="col1">a constant representing the boolean false value</td>
	</tr>
	<tr class="row28">
		<td class="col0"><a href="../keywords/float.html" class="wikilink1" title="keywords:float">float</a></td><td class="col1">declare a floating-point variable</td>
	</tr>
	<tr class="row29">
		<td class="col0"><a href="../keywords/for.html" class="wikilink1" title="keywords:for">for</a></td><td class="col1">looping construct</td>
	</tr>
	<tr class="row30">
		<td class="col0"><a href="../keywords/friend.html" class="wikilink1" title="keywords:friend">friend</a></td><td class="col1">grant non-member function access to private data</td>
	</tr>
	<tr class="row31">
		<td class="col0"><a href="../keywords/goto.html" class="wikilink1" title="keywords:goto">goto</a></td><td class="col1">jump to a different part of the program</td>
	</tr>
	<tr class="row32">
		<td class="col0"><a href="../keywords/if.html" class="wikilink1" title="keywords:if">if</a></td><td class="col1">execute code based on the result of a test</td>
	</tr>
	<tr class="row33">
		<td class="col0"><a href="../keywords/inline.html" class="wikilink1" title="keywords:inline">inline</a></td><td class="col1">optimize calls to short functions</td>
	</tr>
	<tr class="row34">
		<td class="col0"><a href="../keywords/int.html" class="wikilink1" title="keywords:int">int</a></td><td class="col1">declare an integer variable</td>
	</tr>
	<tr class="row35">
		<td class="col0"><a href="../keywords/long.html" class="wikilink1" title="keywords:long">long</a></td><td class="col1">declare a long integer variable</td>
	</tr>
	<tr class="row36">
		<td class="col0"><a href="../keywords/mutable.html" class="wikilink1" title="keywords:mutable">mutable</a></td><td class="col1">override a const variable</td>
	</tr>
	<tr class="row37">
		<td class="col0"><a href="../keywords/namespace.html" class="wikilink1" title="keywords:namespace">namespace</a></td><td class="col1">partition the global namespace by defining a scope</td>
	</tr>
	<tr class="row38">
		<td class="col0"><a href="../keywords/new.html" class="wikilink1" title="keywords:new">new</a></td><td class="col1">allocate dynamic memory for a new variable</td>
	</tr>
	<tr class="row39">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">not</a></td><td class="col1">alternative to ! operator</td>
	</tr>
	<tr class="row40">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">not_eq</a></td><td class="col1">alternative to != operator</td>
	</tr>
	<tr class="row41">
		<td class="col0"><a href="../keywords/operator.html" class="wikilink1" title="keywords:operator">operator</a></td><td class="col1">create overloaded operator functions</td>
	</tr>
	<tr class="row42">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">or</a></td><td class="col1">alternative to || operator</td>
	</tr>
	<tr class="row43">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">or_eq</a></td><td class="col1">alternative to |= operator</td>
	</tr>
	<tr class="row44">
		<td class="col0"><a href="../keywords/private.html" class="wikilink1" title="keywords:private">private</a></td><td class="col1">declare private members of a class</td>
	</tr>
	<tr class="row45">
		<td class="col0"><a href="../keywords/protected.html" class="wikilink1" title="keywords:protected">protected</a></td><td class="col1">declare protected members of a class</td>
	</tr>
	<tr class="row46">
		<td class="col0"><a href="../keywords/public.html" class="wikilink1" title="keywords:public">public</a></td><td class="col1">declare public members of a class</td>
	</tr>
	<tr class="row47">
		<td class="col0"><a href="../keywords/register.html" class="wikilink1" title="keywords:register">register</a></td><td class="col1">request that a variable be optimized for speed</td>
	</tr>
	<tr class="row48">
		<td class="col0"><a href="../keywords/reinterpret_cast.html" class="wikilink1" title="keywords:reinterpret_cast">reinterpret_cast</a></td><td class="col1">change the type of a variable</td>
	</tr>
	<tr class="row49">
		<td class="col0"><a href="../keywords/return.html" class="wikilink1" title="keywords:return">return</a></td><td class="col1">return from a function</td>
	</tr>
	<tr class="row50">
		<td class="col0"><a href="../keywords/short.html" class="wikilink1" title="keywords:short">short</a></td><td class="col1">declare a short integer variable</td>
	</tr>
	<tr class="row51">
		<td class="col0"><a href="../keywords/signed.html" class="wikilink1" title="keywords:signed">signed</a></td><td class="col1">modify variable type declarations</td>
	</tr>
	<tr class="row52">
		<td class="col0"><a href="../keywords/sizeof.html" class="wikilink1" title="keywords:sizeof">sizeof</a></td><td class="col1">return the size of a variable or type</td>
	</tr>
	<tr class="row53">
		<td class="col0"><a href="../keywords/static.html" class="wikilink1" title="keywords:static">static</a></td><td class="col1">create permanent storage for a variable</td>
	</tr>
	<tr class="row54">
		<td class="col0"><a href="../keywords/static_cast.html" class="wikilink1" title="keywords:static_cast">static_cast</a></td><td class="col1">perform a nonpolymorphic cast</td>
	</tr>
	<tr class="row55">
		<td class="col0"><a href="../keywords/struct.html" class="wikilink1" title="keywords:struct">struct</a></td><td class="col1">define a new structure</td>
	</tr>
	<tr class="row56">
		<td class="col0"><a href="../keywords/switch.html" class="wikilink1" title="keywords:switch">switch</a></td><td class="col1">execute code based on different possible values for a variable</td>
	</tr>
	<tr class="row57">
		<td class="col0"><a href="../keywords/template.html" class="wikilink1" title="keywords:template">template</a></td><td class="col1">create generic functions</td>
	</tr>
	<tr class="row58">
		<td class="col0"><a href="../keywords/this.html" class="wikilink1" title="keywords:this">this</a></td><td class="col1">a pointer to the current object</td>
	</tr>
	<tr class="row59">
		<td class="col0"><a href="../keywords/throw.html" class="wikilink1" title="keywords:throw">throw</a></td><td class="col1">throws an exception</td>
	</tr>
	<tr class="row60">
		<td class="col0"><a href="../keywords/true.html" class="wikilink1" title="keywords:true">true</a></td><td class="col1">a constant representing the boolean true value</td>
	</tr>
	<tr class="row61">
		<td class="col0"><a href="../keywords/try.html" class="wikilink1" title="keywords:try">try</a></td><td class="col1">execute code that can throw an exception</td>
	</tr>
	<tr class="row62">
		<td class="col0"><a href="../keywords/typedef.html" class="wikilink1" title="keywords:typedef">typedef</a></td><td class="col1">create a new type name from an existing type</td>
	</tr>
	<tr class="row63">
		<td class="col0"><a href="../keywords/typeid.html" class="wikilink1" title="keywords:typeid">typeid</a></td><td class="col1">describes an object</td>
	</tr>
	<tr class="row64">
		<td class="col0"><a href="../keywords/typename.html" class="wikilink1" title="keywords:typename">typename</a></td><td class="col1">declare a class or undefined type</td>
	</tr>
	<tr class="row65">
		<td class="col0"><a href="../keywords/union.html" class="wikilink1" title="keywords:union">union</a></td><td class="col1">a structure that assigns multiple variables to the same memory location</td>
	</tr>
	<tr class="row66">
		<td class="col0"><a href="../keywords/unsigned.html" class="wikilink1" title="keywords:unsigned">unsigned</a></td><td class="col1">declare an unsigned integer variable</td>
	</tr>
	<tr class="row67">
		<td class="col0"><a href="../keywords/using.html" class="wikilink1" title="keywords:using">using</a></td><td class="col1">import complete or partial namespaces into the current scope</td>
	</tr>
	<tr class="row68">
		<td class="col0"><a href="../keywords/virtual.html" class="wikilink1" title="keywords:virtual">virtual</a></td><td class="col1">create a function that can be overridden by a derived class</td>
	</tr>
	<tr class="row69">
		<td class="col0"><a href="../keywords/void.html" class="wikilink1" title="keywords:void">void</a></td><td class="col1">declare functions or data with no associated data type</td>
	</tr>
	<tr class="row70">
		<td class="col0"><a href="../keywords/volatile.html" class="wikilink1" title="keywords:volatile">volatile</a></td><td class="col1">warn the compiler about variables that can be modified unexpectedly</td>
	</tr>
	<tr class="row71">
		<td class="col0"><a href="../keywords/wchar_t.html" class="wikilink1" title="keywords:wchar_t">wchar_t</a></td><td class="col1">declare a wide-character variable</td>
	</tr>
	<tr class="row72">
		<td class="col0"><a href="../keywords/while.html" class="wikilink1" title="keywords:while">while</a></td><td class="col1">looping construct</td>
	</tr>
	<tr class="row73">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">xor</a></td><td class="col1">alternative to ^ operator</td>
	</tr>
	<tr class="row74">
		<td class="col0"><a href="../alternative_operators.html" class="wikilink1" title="alternative_operators">xor_eq</a></td><td class="col1">alternative to ^= operator</td>
	</tr>
</table>

</div>

    <!-- wikipage stop -->
  </div>

  <div class="clearer">&nbsp;</div>

  
  <div class="stylefoot">

    <div class="meta">
      <div class="user">
              </div>
      <!--
      <div class="doc">
        keywords/start.txt &middot; Last modified: 09/28/2009 06:49 by 79.79.133.249      </div>
      -->
    </div>

   
    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
        <a href="../keywords/start.html"  class="action edit" accesskey="e" rel="nofollow">Edit this page</a> &#149;
        <a href="../keywords/start.html"  class="action revisions" accesskey="o" rel="nofollow">Old revisions</a>      </div>
      <div class="bar-right" id="bar__bottomright">
         &#149;
         &#149;
         &#149;
        <a href="../keywords/start.html"  class="action login" rel="nofollow">Login</a> &#149;
        <a href="../keywords/start.html"  class="action index" accesskey="x" rel="nofollow">Index</a> &#149;
        <a href="../keywords/start.html"  class="action recent" accesskey="r" rel="nofollow">Recent changes</a> &#149;
        <a  href="../feed.php.html" title="Recent changes RSS feed">RSS</a> &#149;
        <a href='http://creativecommons.org/licenses/by/3.0/us/' title='Creative Commons license'>cc</a> &#149;
        <form action="/wiki/" accept-charset="utf-8" class="search" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[ALT+F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>&nbsp;
      </div>
      <div class="clearer"></div>
    </div>

  </div>

</div>

<div class="no"><img src="/wiki/lib/exe/indexer.php?id=keywords%3Astart&amp;1273193073" width="1" height="1" alt=""  /></div>
</body>
</html>