Share via


packaged_task::valid Method

Specifies whether the object has an associated asynchronous state.

bool valid() const;

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>