名前空間
変種
操作

Comparison operators

提供: cppreference.com
< cpp‎ | language

 
 
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.
インラインアセンブリ
 
引数を比較.
Original:
Compares the arguments.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operator name Syntax Over​load​able Prototype examples (for class T)
Inside class definition Outside class definition
equal to a == b Yes bool T::operator ==(const T2 &b) const; bool operator ==(const T &a, const T2 &b);
not equal to a != b Yes bool T::operator !=(const T2 &b) const; bool operator !=(const T &a, const T2 &b);
less than a < b Yes bool T::operator <(const T2 &b) const; bool operator <(const T &a, const T2 &b);
greater than a > b Yes bool T::operator >(const T2 &b) const; bool operator >(const T &a, const T2 &b);
less than or equal to a <= b Yes bool T::operator <=(const T2 &b) const; bool operator <=(const T &a, const T2 &b);
greater than or equal to a >= b Yes bool T::operator >=(const T2 &b) const; bool operator >=(const T &a, const T2 &b);
'注意'
Original:
Notes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • すべての組み込みの演算子の戻りboolと、ほとんどのユーザ定義のオーバーロードは、boolので、ユーザ定義の演算子は、ビルトインと同じ方法で使用できることを返します。ただし、ユーザー定義演算子のオーバーロードでは、任意の型、戻り値の型(voidを含む)として使用することができます.
    Original:
    All built-in operators return bool, and most user-defined overloads also return bool so that the user-defined operators can be used in the same manner as the built-ins. However, in a user-defined operator overload, any type can be used as return type (including void).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • T2T含む任意の型を指定できます
    Original:
    T2 can be any type including T
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 説明

変更されていない引数の値の比較結果を表すブール値を返します。.
Original:
Returns the boolean result of comparison of the values of the arguments, which are not modified.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 算術比較演算子

昇格算術型のペアごとLR、列挙型を含む、次の関数のシグネチャは、オーバーロードの解決に関与します
Original:
For every pair of promoted arithmetic types L and R, including enumeration types, the following function signatures participate in overload resolution:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bool operator<(L, R);
bool operator>(L, R);
bool operator<=(L, R);
bool operator>=(L, R);
bool operator==(L, R);
bool operator!=(L, R);
オペランドが算術または列挙型(スコープまたはスコープを持たない)、通常の算術変換がある場合算術演算子のルールに従って実行されます。値は変換後に比較されます
Original:
If the operands has arithmetic or enumeration type (scoped or unscoped), usual arithmetic conversions are performed following the rules for 算術演算子. The values are compared after conversions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

#include <iostream>
int main()
{
    std::cout << std::boolalpha;
    int n = -1;
 
    int n2 = 1;
    std::cout << " -1 == 1? " << (n == n2) << '\n'
              << "Comparing two signed values:\n"
              << " -1  < 1? " << (n < n2) << '\n'
              << " -1  > 1? " << (n > n2) << '\n';
 
    unsigned int u = 1;
    std::cout << "Comparing signed and unsigned:\n"
              << " -1  < 1? " << (n < u) << '\n'
              << " -1  > 1? " << (n > u) << '\n';
 
    unsigned char uc = 1;
    std::cout << "Comparing signed and smaller unsigned:\n"
              << " -1  < 1? " << (n < uc) << '\n'
              << " -1  > 1? " << (n > uc) << '\n';
}

Output:

-1 == 1? false
Comparing two signed values:
 -1  < 1? true
 -1  > 1? false
Comparing signed and unsigned:
 -1  < 1? false
 -1  > 1? true
Comparing signed and smaller unsigned:
 -1  < 1? true
 -1  > 1? false

[編集] ポインタ比較演算子

オブジェクトまたは関数またはPへのポインタへのポインタのいずれかであり、メンバオブジェクトまたはメンバ関数へのポインタへのポインタであるすべてのタイプstd::nullptr_tの場合は、次の関数のシグネチャは、オーバーロードの解決に参加する全ての型MPの場合:
Original:
For every type P which is either pointer to object or pointer to function or std::nullptr_t, and for every type MP that is a pointer to member object or pointer to member function, the following function signatures participate in overload resolution:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bool operator<(P, P);
bool operator>(P, P);
bool operator<=(P, P);
bool operator>=(P, P);
bool operator==(P, P);
bool operator!=(P, P);
bool operator==(MP, MP);
bool operator!=(MP, MP);
比較演算子は、二つのポインタ(ポインタツーメンバー、operator==operator!=のみの場合)、または定数ポインタとNULLポインタの場合、または2つのヌルポインタ定数(ただし、そのうちの少なくとも一つがある限りを比較するために使用することができますstd::nullptr_t:NULLとNULLの比較は算術比較規則に従います)。 ポインタ変換(会員の変換へのポインタ引数がメンバへのポインタである場合)と資格変換は以下のように、複合ポインタ型を得るために、両方のオペランドに適用される
Original:
Comparison operators can be used to compare two pointers (or pointers-to-members, for operator== and operator!= only), or a pointer and a null pointer constant, or two null pointer constants (but only as long as at least one of them is std::nullptr_t: comparison of NULL and NULL follows arithmetic comparison rules). ポインタ変換 (pointer to member conversions if the arguments are pointers to members) and 資格変換 are applied to both operands to obtain the composite pointer type, as follows
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
両方のオペランドがnullポインタ定数である場合、複合ポインタ型はstd::nullptr_tです
Original:
If both operands are null pointer constants, the composite pointer type is std::nullptr_t
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
1オペランド定数や他のNULLポインタがポインタである場合、複合型は正確にポインタ型です
Original:
If one operand a null pointer constant and the other is a pointer, the composite type is exactly the pointer type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
両方のオペランドが同じ型へのポインタである場合は、CV-資格異なると、複合材料は、引数のcv-資格の和集合であるCV-資格を持つ同じ型へのポインタである.
Original:
If both operands are pointers to the same type, with different cv-qualification, the composite is pointer to the same type with cv-qualification that is a union of the cv-qualifications of the arguments.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
これは任意のポインタがvoid*と比較することができることを含意することに注意してください.
Original:
Note that this implies that any pointer can be compared with void*.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2ポインタ(変換後)比較の結果は次のように決定されます
Original:
Results of comparing two pointers (after conversions) are determined as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
もしポインタpq
Original:
If the pointers p and q
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
a)
同じオブジェクトまたは関数を指す
Original:
point to the same object or function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
b)
同じ配列の終わりを超えて、またはポイント1
Original:
or point one past the end of the same array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c)
または両方がnullポインタです
Original:
or are both null pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
次に、ポインタが等しい比較p==qp<=q、そしてp>=qリターンtrue、しばらくp!=qp<q、そしてp>qリターンfalse
Original:
then the pointers compare equal: p==q, p<=q, and p>=q return true, while p!=q, p<q, and p>q return false,
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
いずれかのオペランドがNULLポインタで、もう一方がない場合は、それらが等しくない比較:p==q戻りtruep!=q戻りfalse、他の演算子の動作は保証されません.
Original:
If one of the operands is a null pointer and the other is not, they compare unequal: p==q returns true, p!=q returns false, the behavior of other operators is unspecified.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
もしポインタpqと同じ配列のメンバーを指すa[i]a[j]または配列の終わりを超え1、彼らはポインタを比較した結果は、インデックスを比較した結果と同じになります:ifi<j==trueその後{{{1}}}.
Original:
If the pointers p and q point to members of the same array a[i] and a[j] or one past the end of the array, they results of comparing the pointers is the same as the result of comparing the indexes: if i<j==true then {{{1}}}.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
再帰的に、pqポイント同じ派生クラスには、同じクラスまたは異なるベースサブオブジェクト内の非静的データメンバへ、またはそのメンバ、またはサブオブジェクトへのポインタであれば、先の尖ったトゥメンバー/サブオブジェクトは、同じアクセス制御を持っている場合(両方public:など)、クラスは以前に宣言サブオブジェクト/メンバへのポインタよりも大きくしてから、後で宣言サブオブジェクト/メンバへのポインタ組合ではありません。換言すれば、3つのアクセス·モードのそれぞれのクラスメンバは、宣言順にメモリに配置されている.
Original:
If the pointers p and q point to non-static data members within the same class or different base subobjects within the same derived class, or to their members or subobjects, recursively, and if the pointed-to members/subobjects have the same access control (e.g. both public:), and the class is not a union, then the pointer to the later declared subobject/member compares greater than the pointer to the earlier declared subobject/member. In other words, class members in each of the three access modes are positioned in memory in order of declaration.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
ポインタがpと同じqのメンバーにunionポイント、それらが等しい比較する場合(通常はvoid*への明示的な変換は、オペランドの一つが必要です。)
Original:
If the pointers p and q point to members of the same union, they compare equal (typically an explicit conversion to void* is required for one of the operands)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
7)
ポインタの1が両方nullポインタと同じアドレスまたはアールvoidと両方のポインタ·ポイントへのポインタである場合、それらは等しいと比較.
Original:
If one of the pointers is a pointer to void and both pointers point to the same address or are both null pointers, they compare equal.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
8)
2ヌルポインタ定数を比較した場合、それらは等しいと比較.
Original:
If two null pointer constants are compared, they compare equal.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
9)
両方のオペランドがメンバ(オブジェクトまたは関数)へのポインタである場合、それらは比較が等しい場合は、どちらもほとんどの派生クラスの同じメンバーをポイント.
Original:
If both operands are pointers to member (object or function), they compare equal if they both point to the same member of the most derived class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
10)
それ以外の場合(異なるアレイ内のオブジェクトへの、または別の関数に、または別のアクセス制御を持ついくつかのオブジェクトのメンバへのポインタの点等あれば)、p<qの結果は、p>qp<=q、そしてp>=q不特定であり、p!=q返しfalse
Original:
Otherwise (if the pointers point to objects in different arrays, or to different functions, or to members of some object with different access control, etc), the results of p<q, p>q, p<=q, and p>=q are unspecified, and p!=q returns false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

#include <iostream>
struct Foo  { int n1; int n2; };
union Union { int n; double d; };
int main()
{
    std::cout << std::boolalpha;
 
    char a[4] = "abc";
 
    char* p1 = &a[1];
    char* p2 = &a[2];
    std::cout << "Pointers to array elements: p1 == p2 " << (p1 == p2)
              << ", p1 < p2 "  << (p1 < p2) << '\n';
 
    Foo f;
    int* p3 = &f.n1;
    int* p4 = &f.n2;
    std::cout << "Pointers to members of a class: p3 == p4 " << (p3 == p4)
              << ", p3 < p4 "  << (p3 < p4) << '\n';
 
    Union u;
    int* p5 = &u.n;
    double* p6 = &u.d;
    std::cout << "Pointers to members of a union: p5 == (void*)p6 " << (p5 == (void*)p6)
              << ", p5 < p6 "  << (p5 < (void*)p6) << '\n';
}

Output:

Pointers to array elements: p1 == p2 false, p1 < p2 true
Pointers to members of a class: p3 == p4 false, p3 < p4 true
Pointers to members of a union: p5 == (void*)p6 true, p5 < p6 false

[編集] ノート

これらの演算子は左から右にグループ化、表現a<b<c(a<b)<cを解析され、しないa<(b<c)または(a<b)&&(b<c)..されているので
Original:
Because these operators group left-to-right, the expression a<b<c is parsed (a<b)<c, and not a<(b<c) or (a<b)&&(b<c).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ユーザー定義のための共通の要件はoperator<厳密な弱い順序です。特に、これはLessThanComparable型を操作標準アルゴリズムとコンテナによって要求され:std::sortstd::max_elementstd::mapなど
Original:
A common requirement for user-defined operator< is 厳密な弱い順序. In particular, this is required by the standard algorithms and containers that work with LessThanComparable types: std::sort, std::max_element, std::map, etc.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ランダム起源のポインタ(例えば、全て同じ配列のメンバーを指していない)を比較した結果は不定であるが、多くの実装では、ポインタの厳密な順序付け合計などを提供それらが連続する仮想アドレス空間内のアドレスとして実装されている場合。 (例えばポインタのすべてのビットがメモリアドレスの一部であり、比較のために無視されるように、または付加的な計算が必要か、そうでなければ、ポインタと整数は1対1の関係ではありません持っていない)、提供していないそれらの実装その保証を持つポインタに対するstd::lessの専門化。これにより、このようなstd::setまたはstd::mapなどの標準連想コンテナのキーとしてランダム起源のすべてのポインタを使用できるようになります.
Original:
Although the results of comparing pointers of random origin (e.g. not all pointing to members of the same array) is unspecified, many implementations provide 厳密な順序付け合計 of pointers, e.g. if they are implemented as addresses within continuous virtual address space. Those implementations that do not (e.g. where not all bits of the pointer are part of a memory address and have to be ignored for comparison, or an additional calculation is required or otherwise pointer and integer is not a 1 to 1 relationship), provide a specialization of std::less for pointers that has that guarantee. This makes it possible to use all pointers of random origin as keys in standard associative containers such as std::set or std::map.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 標準ライブラリ

比較演算子は、標準ライブラリの多くのクラスのためにオーバーロードされています.
Original:
Comparison operators are overloaded for many classes in the standard library.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
checks whether the objects refer to the same type
(パブリックメンバ関数of std::type_info) [edit]
2error_codesを比較します
Original:
compares two error_codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)
error_conditionsとerror_codesを比較します
Original:
compares error_conditions and error_codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)
辞書的にペア内の値を比較します
Original:
lexicographically compares the values in the pair
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にタプルの値を比較します
Original:
lexicographically compares the values in the tuple
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
内容を比較します
Original:
compares the contents
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::bitset) [edit]
2アロケータのインスタンスを比較します
Original:
compares two allocator instances
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::allocator) [edit]
unique_ptrnullptrと比較します
Original:
compares to another unique_ptr or with nullptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
shared_ptr、またはnullptrと比較します
Original:
compares with another shared_ptr or with nullptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
std::functionstd::nullptrを比較します
Original:
compares an std::function with std::nullptr
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2期間を比較します
Original:
compares two durations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2時点を比較します
Original:
compares two time points
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2 scoped_allocator_adaptorインスタンスを比較します
Original:
compares two scoped_allocator_adaptor instances
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::scoped_allocator_adaptor) [edit]
基礎std::type_infoオブジェクトを比較します
Original:
compares the underlying std::type_info objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::type_index) [edit]
辞書的に2つの文字列を比較する
Original:
lexicographically compares two strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
ロケールオブジェクト間の等価比較
Original:
equality comparison between locale objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::locale) [edit]
辞書的にarray内の値を比較します
Original:
lexicographically compares the values in the array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にdeque内の値を比較します
Original:
lexicographically compares the values in the deque
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にforward_list内の値を比較します
Original:
lexicographically compares the values in the forward_list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にlist内の値を比較します
Original:
lexicographically compares the values in the list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にvector内の値を比較します
Original:
lexicographically compares the values in the vector
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にmap内の値を比較します
Original:
lexicographically compares the values in the map
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にmultimap内の値を比較します
Original:
lexicographically compares the values in the multimap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にset内の値を比較します
Original:
lexicographically compares the values in the set
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にmultiset内の値を比較します
Original:
lexicographically compares the values in the multiset
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
unordered_mapの値を比較します
Original:
compares the values in the unordered_map
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
unordered_multimapの値を比較します
Original:
compares the values in the unordered_multimap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
unordered_setの値を比較します
Original:
compares the values in the unordered_set
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
unordered_multisetの値を比較します
Original:
compares the values in the unordered_multiset
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にqueue内の値を比較します
Original:
lexicographically compares the values in the queue
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
辞書的にstack内の値を比較します
Original:
lexicographically compares the values in the stack
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
平等のための2 reverse_iteratorsを比較します
Original:
compares two reverse_iterators for equality
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
受注reverse_iterators
Original:
orders reverse_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2move_iteratorsを比較します
Original:
compares two move_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2 istream_iteratorsを比較します
Original:
compares two istream_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2 istreambuf_iteratorsを比較します
Original:
compares two istreambuf_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2複素数や複雑とスカラーを比較します
Original:
compares two complex numbers or a complex and a scalar
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
2 valarraysまたは値を持つvalarrayを比較します
Original:
compares two valarrays or a valarray with a value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
2つの擬似乱数エンジンの内部状態を比較します
Original:
compares the internal states of two pseudo-random number engines
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数) [edit]
2つのディストリビューションオブジェクトを比較します
Original:
compares two distribution objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数) [edit]
辞書的に容器内の値を比較します
Original:
lexicographically compares the values in the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数) [edit]
辞書的に2試合の結果で値を比較します
Original:
lexicographically compares the values in the two match result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2regex_iteratorsを比較します
Original:
compares two regex_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2regex_token_iteratorsを比較します
Original:
compares two regex_token_iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート)
2thread::idオブジェクトを比較します
Original:
compares two thread::id objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数)
automatically generates comparison operators based on user-defined operator== and operator<
(関数テンプレート) [edit]

[編集] も参照してください

演算子の優先順位

Common operators
代入 incrementNJdecrement 算術 論理 比較 memberNJaccess 他の

a = b
a = rvalue
a += b
a -= b
a *= b
a /= b
a %= b
a &= b
a |= b
a ^= b
a <<= b
a >>= b

++a
--a
a++
a--

+a
-a
a + b
a - b
a * b
a / b
a % b
~a
a & b
a | b
a ^ b
a << b
a >> b

!a
a && b
a || b

a == b
a != b
a < b
a > b
a <= b
a >= b

a[b]
*a
&a
a->b
a.b
a->*b
a.*b

a(...)
a, b
(type) 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:
const_cast converts type to compatible type with different cv qualifiers
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:
sizeof... queries the size of a パラメーターパック (C++11およびそれ以降)
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:
noexcept checks if an expression can throw an exception (C++11およびそれ以降)
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.