std::experimental:: shared_future
From cppreference.net
<
cpp
|
experimental
|
헤더 파일에 정의됨
<experimental/shared_future>
|
||
|
template
<
class
T
>
class
shared_future
;
|
(1) | (concurrency TS) |
|
template
<
class
T
>
class
shared_future
<
T
&
>
;
|
(2) | (concurrency TS) |
|
template
<>
class
shared_future
<
void
>
;
|
(3) | (concurrency TS) |
클래스 템플릿
std::experimental::shared_future
는 다음 연산들로
std::shared_future
를 확장합니다:
-
future<shared_future<T>>에서의 언래핑 생성자 ; -
연관된 공유 상태가 준비되었는지 확인하는 멤버 함수
is_ready; 그리고 -
퓨처에 연속 작업을 첨부하는 멤버 함수
then.
std::experimental::shared_future
와
std::shared_future
사이에는 상호 운용성이 존재하지 않습니다.
목차 |
멤버 함수
shared_future
를 생성합니다
(public member function) |
|
|
공유 상태가 준비되었는지 확인합니다
(public member function) |
|
shared_future
에 연속 작업을 연결합니다
(public member function) |
|
|
내용을 할당합니다
(public member function) |
멤버 함수
|
future 객체를 파괴함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
결과 얻기 |
|
|
결과를 반환함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
상태 |
|
|
future가 공유 상태를 가지고 있는지 확인함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
|
결과를 사용할 수 있을 때까지 대기함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
|
결과를 대기하며, 지정된 타임아웃 기간 동안 사용할 수 없으면 반환함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
|
결과를 대기하며, 지정된 시간 점에 도달할 때까지 사용할 수 없으면 반환함
(
std::shared_future<T>
의 public 멤버 함수)
|
|
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
(concurrency TS)
|
연속성(continuation) 및 기타 기능이 향상된
std::future
의 버전
(클래스 템플릿) |