operator==,!= (std::experimental::function)
|
Определено в заголовочном файле
<experimental/functional>
|
||
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
==
(
const
std::
experimental
::
function
<
R
(
ArgTypes...
)
>
&
f,
|
(1) | (library fundamentals TS) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
==
(
std::
nullptr_t
,
|
(2) |
(library fundamentals TS)
(удалено в library fundamentals TS v3) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
!
=
(
const
std::
experimental
::
function
<
R
(
ArgTypes...
)
>
&
f,
|
(3) |
(library fundamentals TS)
(удалено в library fundamentals TS v3) |
|
template
<
class
R,
class
...
ArgTypes
>
bool
operator
!
=
(
std::
nullptr_t
,
|
(4) |
(library fundamentals TS)
(удалено в library fundamentals TS v3) |
Сравнивает
std::experimental::function
с нулевым указателем. Пустые функции (то есть функции без вызываемой цели) сравниваются как равные, непустые функции сравниваются как неравные.
|
Оператор
|
(library fundamentals TS v3) |
Параметры
| f | - |
std::experimental::function
для сравнения
|
Возвращаемое значение
Смотрите также
|
(удалено в C++20)
|
сравнивает
std::function
с
nullptr
(шаблон функции) |