std:: not_equal_to<void>
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
定義於標頭檔
<functional>
|
||
|
template
<>
class not_equal_to < void > ; |
(C++14以降) | |
std:: not_equal_to < void > は、パラメータと戻り値の型が推論された std::not_equal_to の特殊化です。
目次 |
ネストされた型
| ネスト型 | 定義 |
is_transparent
|
unspecified |
メンバー関数
|
operator()
|
二つの引数が等しくないかどうかをテストする
(public member function) |
std::not_equal_to<void>:: operator()
|
template
<
class
T,
class
U
>
constexpr
auto
operator
(
)
(
T
&&
lhs, U
&&
rhs
)
const
|
||
lhs と rhs の非等価比較の結果を返します。
パラメータ
| lhs, rhs | - | 比較する値 |
戻り値
std:: forward < T > ( lhs ) ! = std:: forward < U > ( rhs ) 。
例
#include <functional> int main() { constexpr int p = 0, q = 8; std::not_equal_to<> not_equal{}; static_assert(!not_equal(p, p)); static_assert(not_equal(p, q)); }