operator==,!= (std::experimental::function)
|
定義先ヘッダ
<experimental/functional>
|
||
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
==
(
const
std::
experimental
::
function
<
R
(
ArgTypes...
)
>
&
f,
|
(1) | (ライブラリ基盤仕様 TS) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
==
(
std::
nullptr_t
,
|
(2) |
(ライブラリ基盤仕様 TS)
(ライブラリ基盤仕様 TS v3 で削除) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
!
=
(
const
std::
experimental
::
function
<
R
(
ArgTypes...
)
>
&
f,
|
(3) |
(ライブラリ基盤仕様 TS)
(ライブラリ基盤仕様 TS v3 で削除) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
!
=
(
std::
nullptr_t
,
|
(4) |
(ライブラリ基盤仕様 TS)
(ライブラリ基盤仕様 TS v3 で削除) |
std::experimental::function
をnullポインタと比較します。空の関数(つまり、呼び出し可能なターゲットを持たない関数)は等しいと比較され、空でない関数は等しくないと比較されます。
|
|
(ライブラリファンダメンタルTS v3) |
パラメータ
| f | - |
std::experimental::function
を比較する
|
戻り値
関連項目
|
(C++20で削除)
|
std::function
と
nullptr
を比較する
(関数テンプレート) |