Share via


packaged_task::operator bool Operator

Specifies whether the object has an associated asynchronous state.

operator bool() const _NOEXCEPT;

Return Value

true if the object has an associated asynchronous state; otherwise, false.

Requirements

Header: future

Namespace: std

See Also

Reference

packaged_task Class

<future>