std::copyable_function:: operator bool
From cppreference.net
<
cpp
|
utility
|
functional
|
copyable function
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function objects
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
explicit
operator
bool
(
)
const
noexcept
;
|
(C++26부터) | |
* this 가 호출 가능한 대상을 저장하는지, 즉 비어 있지 않은지 확인합니다.
목차 |
매개변수
(없음)
반환값
true 만약 * this 가 호출 가능한 대상을 저장하고 있는 경우, false 그렇지 않은 경우.
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
(C++26)
|
std::copyable_function
을
nullptr
와 비교
(함수) |
|
대상이 포함되어 있는지 확인
(
std::function<R(Args...)>
의
public member function)
|
|
std::move_only_function
이 대상을 가지고 있는지 확인
(
std::move_only_function
의
public member function)
|