std::logical_or
提供: cppreference.com
< cpp | utility | functional
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <functional>
|
||
template< class T > struct logical_or; |
||
論理OR(論理和)を行うための関数オブジェクト。効率的に型operator||上
T
呼び出し.Original:
Function object for performing logical OR (logical disjunction). Effectively calls 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.
目次 |
[編集] メンバータイプ
タイプ
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() |
論理和(OR)2の引数を返します Original: returns the logical OR of the two arguments The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) |
のstd :: logical_or ::Original:std::logical_or::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::logical_or::
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; |
||
Returns the logical OR of lhs
and rhs
.
Parameters
lhs, rhs | - | 論理和(OR)の計算するための値
Original: values to compute logical OR of The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
The result of lhs || rhs.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const { return lhs || rhs; } |