# std::packaged_task<R(Args...)>::valid

> C++ Atlas: `cppatlas.com/w/cpp/thread/packaged_task/valid` | Source: https://en.cppreference.com/w/cpp/thread/packaged_task/valid | Domain: Concurrency support | Standards: C++11

Checks whether *this has a shared state.

## Official Specification Summary (cppreference)

```cpp
bool valid() const noexcept; // (since C++11)
```

Checks whether `*this` has a shared state.

### Parameters

(none)

### Return value

`true` if `*this` has a shared state, `false` otherwise.

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/packaged_task/valid (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.