operator==,!=,<,<=,>,>=(std::basic_string)
提供: cppreference.com
< cpp | string | basic string
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
template<class T, class Alloc > bool operator==( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (1) | |
template<class T, class Alloc > bool operator!=( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (2) | |
template<class T, class Alloc > bool operator<( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (3) | |
template<class T, class Alloc > bool operator<=( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (4) | |
template<class T, class Alloc > bool operator>( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (5) | |
template<class T, class Alloc > bool operator>=( basic_string<T,Alloc>& lhs, basic_string<T,Alloc>& rhs ); | (6) | |
二つの文字列の内容を比較.
1-2) Original:
Compares the contents of two strings.
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.
lhs
でrhs
の内容かどうかをチェックするとlhs.size()== rhs.size()等しい、つまり、lhs
、各文字が同じ位置にrhs
で同等の文字を持ってい.Original:
Checks if the contents of
lhs
and rhs
are equal, that is, lhs.size()== rhs.size() and each character in lhs
has equivalent character in rhs
at the same position.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.
lhs
の内容を比較し、辞書的にrhs
。比較はstd::lexicographical_compareと同等の機能によって実行されます.Original:
Compares the contents of
lhs
and rhs
lexicographically. The comparison is performed by a function equivalent to std::lexicographical_compare.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.
[編集]パラメータ
lhs, rhs | - | その内容は比較する文字列 Original: strings whose contents to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集]値を返します
1)true文字列の内容が同等である場合、そうでなければfalse
2) Original:
true if the contents of the strings are equivalent, false otherwise
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.
true文字列の内容が等しくない場合、falseそうでなければ
3) Original:
true if the contents of the strings are not equivalent, false otherwise
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.
true
4) lhs
の内容を辞書であればrhs
の内容より小さい、falseそうでなければOriginal:
true if the contents of the
lhs
are lexicographically less than the contents of rhs
, false otherwiseThe 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.
true
5) lhs
の内容を辞書であれば未満や等しいrhs
の内容は、falseそうでなければOriginal:
true if the contents of the
lhs
are lexicographically less than or equal the contents of rhs
, false otherwiseThe 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.
true
6) lhs
の内容を辞書rhs
の内容より'大きい場合、falseそうでなければOriginal:
true if the contents of the
lhs
are lexicographically greater than the contents of rhs
, false otherwiseThe 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.
true
lhs
の内容を辞書であればや等しいより大きい'rhs
の内容は、falseそうでなければOriginal:
true if the contents of the
lhs
are lexicographically greater than or equal the contents of rhs
, false otherwiseThe 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:
Linear in the size of the strings.
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.