Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | thread‎ | packaged task
 
 
Concurrency support library
(C++11)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++17)
(C++11)
(C++11)
(C++17)
(C++11)
(C++14)
(C++11)
(C++11)
(C++11)
(C++11)
(C++20)
(C++20)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++26)
(C++26)
(C++26)
(C++26)
(C++11)
(C++20)
(C++11)
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
(C++11)
(C++11)(deprecated in C++26)
 
 
bool valid() const noexcept;
(since C++11)

Checks whether *this has a shared state.

[edit] Parameters

(none)

[edit] Return value

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

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/thread/packaged_task/valid&oldid=132865"

AltStyle によって変換されたページ (->オリジナル) /