「cpp/utility/functional/greater equal」の版間の差分
提供: cppreference.com
< cpp | utility | functional
細 (r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh) |
細 (Use {{lc}}. Update links. Various fixes.) |
||
2行: | 2行: | ||
{{cpp/title|greater_equal}} | {{cpp/title|greater_equal}} | ||
{{cpp/utility/functional/navbar}} | {{cpp/utility/functional/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{header | functional }} |
− | {{ | + | {{| |
template< class T > | template< class T > | ||
struct greater_equal; | struct greater_equal; | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|比較を行うための関数オブジェクト。タイプ{{c|operator>{{=}}}}に{{tt|T}}を実装しています.|Function object for performing comparisons. Implements {{c|operator>{{=}}}} on type {{tt|T}}.}} | {{tr|比較を行うための関数オブジェクト。タイプ{{c|operator>{{=}}}}に{{tt|T}}を実装しています.|Function object for performing comparisons. Implements {{c|operator>{{=}}}} on type {{tt|T}}.}} | ||
16行: | 16行: | ||
===メンバータイプ=== | ===メンバータイプ=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{hitem |{{tr| タイプ | type }}| definition }} |
− | {{ | + | {{| {{tt|result_type}} | {{tt|bool}}}} |
− | {{ | + | {{| {{tt|first_argument_type}} | {{tt|T}} }} |
− | {{ | + | {{| {{tt|second_argument_type}} | {{tt|T}} }} |
− | {{ | + | {{end}} |
===メンバ関数=== | ===メンバ関数=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{mem fun | operator() | nolink=true |{{tr| 最初の引数があるかどうかをチェック''大きい''よりまたは第二に''''等しい| checks if the first argument is ''greater'' than or ''equal'' to the second}}}} |
− | {{ | + | {{end}} |
{{member | {{small|{{tr|のstd :: greater_equal ::|std::greater_equal::}}}}operator() | 2= | {{member | {{small|{{tr|のstd :: greater_equal ::|std::greater_equal::}}}}operator() | 2= | ||
36行: | 36行: | ||
===Parameters=== | ===Parameters=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| lhs, rhs |{{tr| 比較する値| values to compare}}}} |
− | {{ | + | {{end}} |
===Return value=== | ===Return value=== |
2013年7月2日 (火) 16:24時点における版
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <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; } |