名前空間
変種
操作

C++ のキーワード

提供: cppreference.com
< cpp


 
 
C + +言語
一般的なトピック
Original:
General topics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
フロー制御
Original:
Flow control
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
条件付き実行文
Original:
Conditional execution statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
繰り返し文
Original:
Iteration statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
文をジャンプします
Original:
Jump statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
機能します
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
関数の宣言
ラムダ関数の宣言
関数テンプレート
の歴史。インライン指定
例外仕様 (廃止予定)
noexcept指定子 (C++11)
例外
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
名前空間
Original:
Namespaces
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
タイプ
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
decltype specifier (C++11)
指定子
Original:
Specifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CV指定
貯蔵期間指定
constexprの指定子 (C++11)
自動指定 (C++11)
alignas指定子 (C++11)
初期化
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
リテラル
Original:
Literals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Original:
Expressions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
代替表現
ユーティリティ
Original:
Utilities
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
タイプ
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
typedef declaration
型の別名宣言 (C++11)
属性 (C++11)
キャストします
Original:
Casts
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
暗黙の型変換
const_cast conversion
static_cast conversion
dynamic_cast conversion
reinterpret_cast conversion
Cスタイルキャストと機能
メモリの割り当て
Original:
Memory allocation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
クラス
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
クラス固有の機能特性
Original:
Class-specific function properties
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
明示 (C++11)
静的
特殊なメンバ関数
Original:
Special member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
テンプレート
Original:
Templates
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
クラステンプレート
関数テンプレート
テンプレートの特殊化
パラメーターパック (C++11)
その他
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
インラインアセンブリ
 
 

これは、C++の予約語の一覧です。これらのキーワードはC++言語で利用されているので、再定義やオーバーロードはできません。

alignas (C++11およびそれ以降)
alignof (C++11およびそれ以降)
and
and_eq
asm
auto(1)
bitand
bitor
bool
break
case
catch
char
char16_t (C++11およびそれ以降)
char32_t (C++11およびそれ以降)
class
compl
concept (concepts TS)
const
constexpr (C++11およびそれ以降)
const_cast
continue
decltype (C++11およびそれ以降)
default(1)
delete(1)
do
double
dynamic_cast

else
enum
explicit
export(1)
extern
false
float
for
friend
goto
if
inline
int
long
mutable
namespace
new
noexcept (C++11およびそれ以降)
not
not_eq
nullptr (C++11およびそれ以降)
operator
or
or_eq
private
protected
public
register
reinterpret_cast

requires (concepts TS)
return
short
signed
sizeof
static
static_assert (C++11およびそれ以降)
static_cast
struct
switch
template
this
thread_local (C++11およびそれ以降)
throw
true
try
typedef
typeid
typename
union
unsigned
using(1)
virtual
void
volatile
wchar_t
while
xor
xor_eq

  • (1) - C++で意味が変更されたもの

and, bitor, or, xor, compl, bitand, and_eq, or_eq, xor_eq, not, および not_eq は、(ダイグラフ <%, %>, <:, :>, %:, および %:%: とともに) 標準のトークンを表現する別の方法を提供していることに注意してください。。

キーワードに加えて、オブジェクトや関数の名前として使用することができる特別な意味のを持つ2つの識別子がありますが、特定のコンテキストで特別な意味を持ってい.
Original:
In addition to keywords, there are two identifiers with special meaning, which may be used as names of objects or functions, but have special meaning in certain contexts.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
override (C++11)

final (C++11)

また、アンダースコアで始まる任意の位置に二重アンダースコア_が含まれ、すべての識別子、常に予約されている大文字が続くアンダースコア(_)で始まる各識別子と、すべての識別子は、グローバル名前空間内の名前として使用するために予約されています。詳細については、識別子を参照してください。
Original:
Also, all identifiers that contains 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 text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

名前空間 std は、標準C++ライブラリの名前を置くのに使われています。ここに名前を追加する規則については、名前空間 std を拡張するを参照してください。

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. (C++11およびそれ以降)

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

if
elif
else
endif
defined

ifdef
ifndef
define
undef

include
line
error
pragma

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

_Pragma(C++11およびそれ以降)

[編集] 参考

C documentation for C のキーワード