cppreference.net
Namespaces
Page
Variants
std::experimental::future<T>::
is_ready
From cppreference.net
<
cpp
|
experimental
|
future
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Diagnostics library
Memory management library
Metaprogramming library
(C++11)
General utilities library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Strings library
Text processing library
Numerics library
Date and time library
Input/output library
Filesystem library
(C++17)
Concurrency support library
(C++11)
Execution control library
(C++26)
Technical specifications
Symbols index
External libraries
Experimental
Technical Specification
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals TS v2)
Library fundamentals 3
(library fundamentals TS v3)
Extensions for parallelism
(parallelism TS)
Extensions for parallelism 2
(parallelism TS v2)
Extensions for concurrency
(concurrency TS)
Extensions for concurrency 2
(concurrency TS v2)
Concepts
(concepts TS)
Ranges
(ranges TS)
Reflection
(reflection TS)
Mathematical special functions
(special functions TR)
Experimental Non-TS
Pattern Matching
Linear Algebra
std::execution
Contracts
2D Graphics
Extensions for concurrency
std::future extensions
experimental::future
experimental::shared_future
experimental::when_all
experimental::when_any
experimental::make_ready_future
experimental::make_exceptional_future
Latches and barriers
experimental::latch
experimental::barrier
experimental::flex_barrier
Atomic smart pointers
experimental::atomic_shared_ptr
experimental::atomic_weak_ptr
std::experimental::future
future::future
future::operator=
future::is_ready
future::then
bool
is_ready
(
)
const
;
检查关联的共享状态是否就绪。
当
valid
(
)
为
false
时,其行为是未定义的。
目录
1
参数
2
返回值
3
示例
4
另请参阅
参数
(无)
返回值
true
表示关联的共享状态已就绪,否则为
false
。
示例
本节内容不完整
原因:缺少示例
参阅
valid
检查 future 是否具有共享状态
(
std::future<T>
的公开成员函数)