C++ language
提供:cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
これは、利用可能なC + +言語の構文の簡単なリファレンスです.
Original:
This is a brief reference of available C++ language constructs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] 一般的なトピック
[編集] プリプロセッサ
[編集] コメント
[編集] キーワード
[編集] ASCIIチャート
[編集] エスケープシーケンスを
[編集] の歴史、C + +
[編集] フロー制御
[編集] 条件付き実行文
条件文は、与えられた式の値に応じて、異なるコード·パスを実行する.
Original:
Conditional statements execute different code paths according to the value of given expression.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- if条件付きでコードを実行しますOriginal:if executes code conditionallyThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - switch積分引数の値に応じてコードを実行しますOriginal:switch executes code according to the value of an integral argumentThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 繰り返し文
繰り返し文は、コードパスを複数回実行することが.
Original:
Iteration statements execute a code path multiple times.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- for初期化、比較、および増分を指定することによって、ループを実行しますOriginal:for executes loops by specifying initialization, comparison, and incrementThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - range-for範囲(C + + 11以来)にわたってループを実行しますOriginal:range-for executes loops over a range (C + + 11以来)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - whileは、各反復の前に条件をチェックし、ループを実行するOriginal:while executes loop, checking condition before each iterationThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - は、各反復後の状態をチェックし、ループを実行するOriginal:これは、do-while</div> executes loop, checking condition after each iterationOriginal:do-whileThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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 continue program execution at a different location.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- continue囲むループ本体の残りの部分をスキップしますOriginal:continue skips the remaining part of the enclosing loop bodyThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - break外側のループを終了しますOriginal:break terminates the enclosing loopThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - goto別の場所での実行を継続しますOriginal:goto continues execution in another locationThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - return外側の関数の実行を終了しますOriginal:return terminates execution of the enclosing functionThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 機能します
同じコードは、プログラム内の別の場所で再利用することができます.
Original:
The same code can be reused at different locations in the program.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 関数を宣言するOriginal:関数宣言</div> declare functionsOriginal:function declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:ラムダ関数宣言</div> declare lambda functions (C + + 11以来)Original:lambda function declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 関数テンプレートを宣言しますOriginal:関数テンプレート</div> declare function templatesOriginal:function templatesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - コンパイラが呼び出し元のコードに直接関数の本体を挿入することをほのめかすOriginal:の歴史。インライン指定</div> hints that the compiler insert a function's body directly into the calling codeOriginal:inline specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 関数は、特定の例外をスロー(廃止予定)ことを宣言しますOriginal:例外仕様</div> declare that a function throws only specific exceptions (廃止予定)Original:exception specificationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:noexcept指定子</div> declares whether or not a function throws any exceptions (C + + 11以来)Original:noexcept specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例外
例外は、関数戻りコードまたはグローバルエラー変数よりエラー状態を通知するために、より堅牢な方法です.
Original:
Exceptions are a more robust way to signal error condition than function return codes or global error variables.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 信号エラーおよびエラー·ハンドラに制御を移しますOriginal:式を投げる</div> signal errors and transfer control to error handlersOriginal:throw expressionsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - コードの特定のブロックに起因する例外をキャッチしますOriginal:try-catchブロック</div> catch exceptions originating from specific blocks of codeOriginal:try-catch blocksThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:noexcept operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.Original:noexcept指定子andOriginal:noexcept specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.演算子をnoexcept</div> define and test if expressions throw exceptions (C + + 11以来)Original:noexcept operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 名前空間
名前空間は、大規模なプロジェクトでの名前の衝突を防ぐための方法を提供します.
Original:
Namespaces provide a way to prevent name clashes in large projects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 名前空間を宣言しますOriginal:名前空間宣言</div> declare namespacesOriginal:namespace declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 既存の名前空間の別名を宣言するOriginal:名前空間のエイリアス</div> declare alternate names for existing namespacesOriginal:namespace aliasesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] タイプ
- 基本的な文字、整数と浮動小数点型を定義しますOriginal:基本的なタイプ</div> define basic character, integer and floating point typesOriginal:fundamental typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - メモリ位置を保持しているタイプを定義しますOriginal:ポインタ型</div> define types holding a memory locationOriginal:pointer typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - いくつかのデータメンバを(クラスと本質的に同じ)を保持する型を定義しますOriginal:複合型</div> define types that hold several data members (essentially the same as class)Original:compound typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 指定された値のうち1つだけを保持することができるタイプを定義しますOriginal:列挙型</div> define types that are able to hold only one of the specified valuesOriginal:enumeration typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - いくつかの表現でデータを保持することができるタイプを定義しますOriginal:union型</div> define types that can hold data in several representationsOriginal:union typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 引数の型と戻り値の型である関数呼び出しシグネチャを定義しますOriginal:関数型</div> define function call signatures, that is the types of arguments and the return typeOriginal:function typesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:decltype指定子</div> defines a type equivalent to the type of an expression (C + + 11以来)Original:decltype specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 指定子
- const性と種類のボラティリティを指定しますOriginal:CV指定</div> specify constness and volatility of typesOriginal:cv specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 種類の記憶域期間を指定しますOriginal:貯蔵期間指定</div> specify storage duration of typesOriginal:storage duration specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:constexprの指定子</div> specifies that the value of a variable or function can be computed at compile time (C + + 11以来)Original:constexpr specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:自動指定</div> specifies that the actual type shall be defined from the expression, assigned to the variable (C + + 11以来)Original:auto specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:alignas指定子</div> specifies that the storage for the variable should be aligned by specific amount (C + + 11以来)Original:alignas specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 初期化
たびに名前の変数が宣言され、一時的なオブジェクトが作成されるたびに、新しいオブジェクトの初期値は次のいずれかのメカニズムを介して提供されます:
Original:
Whenever a named variable is declared, and whenever a temporary object is created, the initial value of the new object is provided through one of the following mechanisms:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 初期化子が提供されていない場合に発生しますOriginal:デフォルトの初期化</div> occurs when no initializer is providedOriginal:default initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 初期化子は、括弧の空集合である場合に発生しますOriginal:値の初期化</div> occurs when the initializer is an empty set of parenthesesOriginal:value initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ゼロにオブジェクトのすべてのビットを初期化しますOriginal:ゼロ初期化</div> initializes every bit of the object to zeroOriginal:zero initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 別のオブジェクトからオブジェクトを初期化しますOriginal:初期設定をコピーします</div> initializes an object from another objectOriginal:copy initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 括弧内に、初期値またはコンストラクタの引数のリストを提供しますOriginal:直接初期化</div> provides the initial value or the list of constructor arguments, in parenthesesOriginal:direct initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - コンストラクタなしで配列の全ての要素または構造体に初期値を提供しますOriginal:集約の初期化</div> provides initial values to every member of an array or a struct without a constructorOriginal:aggregate initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 初期化することができます任意の値の長いリストを提供std::vectorまたはstd::map(C + + 11以来)Original:リストの初期化</div> provides an arbitrary long list of values, which can initialize a std::vector or std::map (C + + 11以来)Original:list initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 何かする前に、すべての定数静的オブジェクトを初期化しますOriginal:定数の初期化</div> initializes all constant static objects before anything elseOriginal:constant initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - オブジェクトへの参照をバインドし、一時変数の寿命を延ばすOriginal:リファレンスの初期化</div> binds references to objects and extend the lifetimes of the temporariesOriginal:reference initializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] リテラル
リテラルは、ソースコードに埋め込まれた定数値を表し、C + +プログラムのトークンです.
Original:
Literals are the tokens of a C++ program that represent constant values, embedded in the source code.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 10進数、8進数、または整数型の16進数です.Original:整数リテラル</div> are decimal, octal, or hexadecimal numbers of integer type.Original:integer literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 型の個々の文字ですchar、char16_t、char32_t、またはwchar_tOriginal:文字リテラル</div> are individual characters of type char, char16_t, char32_t, or wchar_tOriginal:character literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - タイプfloat、double、またはlong doubleの値ですOriginal:浮動小数点リテラル</div> are values of type float, double, or long doubleOriginal:floating-point literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 、ナローマルチバイトまたはワイドかもしれない文字の配列であるOriginal:文字列リテラル</div> are sequences of characters, which may be narrow, multibyte, or wideOriginal:string literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - boolとtrueあるタイプfalseの値ですOriginal:ブールリテラル</div> are values of type bool, that is true and falseOriginal:boolean literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - nullptrヌルポインタ値(C + + 11以来)を指定するリテラルのポインタですOriginal:nullptr is the pointer literal which specifies a null pointer value (C + + 11以来)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:ユーザ定義リテラル</div> are constant values of user-specified type (C + + 11以来)Original:user-defined literalsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 式
式は、計算を指定する演算子とオペランドのシーケンスです。式は値をもたらすことができ、副作用を引き起こす可能性があります.
Original:
An expression is a sequence of operators and operands that specifies a computation. An expression can result in a value and can cause side effects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- (左辺値、右辺値、glvalue、prvalue、のxValue)その値で式を分類するOriginal:値カテゴリ</div> (lvalue, rvalue, glvalue, prvalue, xvalue) classify expressions by their valuesOriginal:value categoriesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - は、中間結果が得られる順序を指定しますOriginal:評価の順序</div> of arguments and subexpressions specify the order in which intermediate results are obtainedOriginal:order of evaluationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - operators一般に数学で見つかった構文を使用することができますOriginal:operators allow the use of syntax commonly found in mathematicsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Common operators | ||||||
---|---|---|---|---|---|---|
代入 | incrementNJdecrement | 算術 | 論理 | 比較 | memberNJaccess | 他の |
a = b |
++a |
+a |
!a |
a == b |
a[b] |
a(...) |
Special operators | ||||||
static_cast別の互換性のあるタイプ
に1型に変換します Original: static_cast converts one type to another compatible type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. dynamic_cast派生class
に仮想基底クラスに変換します Original: dynamic_cast converts virtual base class to derived class The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. const_cast異なるcvqualifiers
と互換性のある型に型変換されます Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. reinterpret_cast互換性type
に型を変換します Original: reinterpret_cast converts type to incompatible type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. new割り当てmemory
Original: new allocates memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. delete割り当て解除memory
Original: delete deallocates memory The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. sizeoftype
のサイズを照会します Original: sizeof queries the size of a type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. sizeof...パラメーターパック(C + + 11以来)
のサイズを照会します Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. typeidtype
の型情報を照会します Original: typeid queries the type information of a type 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: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. alignofタイプ(C + + 11以来)のクエリアラインメント要件を
Original: alignof queries alignment requirements of a type (C + + 11以来) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
- 演算子は、引数にバインドされる順序を定義しますOriginal:演算子の優先順位</div> defines the order in which operators are bound to their argumentsOriginal:operator precedenceThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - は、いくつかの演算子の綴りです Original:代替表現</div> are alternative spellings for some operatorsOriginal:alternative representationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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.
You can help to correct and verify the translation. Click here for instructions.
- タイプのシノニムを作成しますOriginal:typedef宣言</div> create synonyms for typesOriginal:typedef declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - タイプのシノニムを作成しますOriginal:エイリアス宣言を入力します</div> create synonyms for typesOriginal:type alias declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:属性</div> define additional information about variables (C + + 11以来)Original:attributesThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
;キャストします
Original:
; Casts
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- Original:標準の変換</div> implicit conversions from one type to anotherOriginal:standard conversionsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - <div class="t-tr-text">
const_cast
変換</div>Original:const_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
static_cast
変換</div>Original:static_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
dynamic_cast
変換</div>Original:dynamic_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - <div class="t-tr-text">
reinterpret_cast
変換</div>Original:reinterpret_cast
conversionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions. - Cスタイルのキャスト表記と関数表記を使用して変換Original:明示的なキャスト</div> conversion using C-style cast notation and functional notationOriginal:explicit castThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
、メモリの割り当て
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.
You can help to correct and verify the translation. Click here for instructions.
- 動的にメモリを割り当てますOriginal:新しい式</div> allocates memory dynamicallyOriginal:new expressionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 動的にメモリを解放するOriginal:式を削除します</div> deallocates memory dynamicallyOriginal:delete expressionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] クラス
クラスは、オブジェクト指向プログラミングの概念を提供するC + +の.
Original:
Classes provide the concept of object-oriented programming in C++.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- クラスを宣言しますOriginal:クラス宣言</div> declare classesOriginal:class declarationsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - メンバメソッド内のクラスの現在のインスタンスにリンクしていますOriginal:
this
ポインタ</div> links to the current instance of a class in member methodsOriginal:this
pointerThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - クラスメンバの可視性を決定するOriginal:指定子にアクセスします</div> determine visibility of class membersOriginal:access specifiersThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 非メンバクラスや関数のためのプライベート/保護された部分へのアクセス権限を付与しますOriginal:友人指定子</div> grants access privileges to private/protected parts for non-member classes or functionsOriginal:friend specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - クラスのメンバデータを初期化しますOriginal:初期化リスト</div> initialize class member dataOriginal:initializer listsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] クラス固有の機能特性
- 関数は仮想であることを宣言しますOriginal:仮想関数指定子</div> declares that a function is virtualOriginal:virtual function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 仮想関数は、別の仮想function.(C + + 11以来)をオーバーライドすることを宣言しますOriginal:指定子をオーバーライドします</div> declares that a virtual function overrides another virtual function.(C + + 11以来)Original:override specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 仮想関数が継承したclass.(C + + 11以来)でオーバーライドできないことを宣言しますOriginal:最後の子</div> declares that a virtual function can not be overridden in a inheriting class.(C + + 11以来)Original:final specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:明示的な関数指定子</div> declares that a constructor or conversion operator can not be used in implicit conversions (C + + 11以来)Original:explicit function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 関数はクラスのデータを使用していないことを宣言しますOriginal:静的関数指定子</div> declares that a function does not use class dataOriginal:static function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - メンバ関数はCV修飾オブジェクト上でのみ使用できることを宣言しますOriginal:CV関数指定子</div> declares that a member function can only be used on cv qualified objectsOriginal:cv function specifierThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 特殊なメンバ関数
- デフォルトの内容を使用してオブジェクトを初期化しますOriginal:デフォルトのコンストラクタです</div> initializes the object with default contentsOriginal:default constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 別のオブジェクトの内容を使用してオブジェクトを初期化しますOriginal:コンストラクタをコピーしてください</div> initializes the object with the contents of another objectOriginal:copy constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:コンストラクタに移動します</div> initializes the object with the contents of other, temporary object, minimizing copying overhead (C + + 11以来)Original:move constructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 別のオブジェクトの内容を持つオブジェクトの内容を置き換えますOriginal:代入演算子です</div> replaces the contents of the object with the contents of another objectOriginal:assignment operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:代入演算子を移動します</div> replaces the contents of the object with the contents of other, temporary object, minimizing copying overhead (C + + 11以来)Original:move assignment operatorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - のリリースでは、リソースを要求したOriginal:デストラクタです</div> releases claimed resourcesOriginal:destructorThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] テンプレート
関数やクラスは、ジェネリック型を操作することができます
Original:
Allows functions and classes to operate on generic types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- クラステンプレートを宣言していますOriginal:クラステンプレート宣言</div> declares a class templateOriginal:class template declarationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 関数テンプレートを宣言していますOriginal:関数テンプレートの宣言</div> declares a function templateOriginal:function template declarationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 特定のタイプのために、既存のテンプレートを定義しますOriginal:テンプレートの特殊化</div> defines an existing template for a specific typeOriginal:template specializationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.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:パラメーターパック</div> allows the use of lists of types in templates (C + + 11以来)Original:parameter packsThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] 最適化
- 出力を変更することはありません任意のコード変換を可能にしますOriginal:AS-if規則</div> allows any code transformation that doesn't change the outputOriginal:The as-if ruleThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - は、値渡し、多くの状況では好ましいアプローチになります.Original:省略をコピーします</div>, including RVO and NRVO, makes pass-by-value the preferred approach in many situations.Original:Copy elisionThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - オーバーヘッドフリーインターフェイスまたはポリシー·クラスからの多重継承を行い、標準のレイアウトタイプに必要な.Original:空のベースの最適化を行います</div> makes multiple inheritance from interfaces or policy classes overhead-free and is required for standard-layout types.Original:Empty base optimizationThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[編集] その他
- C + +のコードと一緒にアセンブリコードを使用することができますOriginal:インラインアセンブリ</div> allows the use of assembly code alongside C++ codeOriginal:Inline assemblyThe text has been machine-translated via [http://translate.google.com Google Translate].
You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.