std::greater_equal
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <functional>
|
||
template< class T > struct greater_equal; |
||
比較を行うための関数オブジェクト。タイプoperator>=に
T
を実装しています.Original:
Function object for performing comparisons. Implements operator>= on type
T
.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.
目次 |
ノート
任意のポインタ型に対する std::greater_equal
の特殊化は、たとえ組み込みの operator<= がそうでなくても、狭義全順序を生成します。 狭義全順序はそのポインタ型に対する std::less、 std::greater、 std::less_equal および std::greater_equal の特殊化に渡って一貫しており、また対応する組み込みの演算子 (<
、 >
、 <=
および >=
) によって与えられる部分順序とも一貫しています。
特殊化 |
(C++14以上) |
メンバータイプ
タイプ
Original: type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
definition |
result_type
|
bool
|
first_argument_type
|
T
|
second_argument_type
|
T
|
メンバ関数
operator() |
最初の引数があるかどうかをチェック大きいよりまたは第二に'等しい Original: checks if the first argument is greater than or equal to the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
のstd :: greater_equal ::Original:std::greater_equal::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.operator()
Original:
std::greater_equal::
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.
bool operator()( const T& lhs, const T& rhs ) const; |
||
Checks whether lhs
is greater than or equal to rhs
.
Parameters
lhs, rhs | - | 比較する値
Original: values to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
true if lhs >= rhs, false otherwise.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const { return lhs >= rhs; } |