File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 8680
8680
\begin {itemdescr }
8681
8681
\pnum
8682
8682
\effects \ Initializes \tcode {c} with \tcode {cont} as the first argument and \tcode {a} as the second
8683
- argument, and initializes \tcode {comp} with \tcode {compare}.
8683
+ argument, and initializes \tcode {comp} with \tcode {compare};
8684
+ calls \tcode {make_heap(c.begin(), c.end(), comp)}.
8684
8685
\end {itemdescr }
8685
8686
8686
8687
\begin {itemdecl }
8691
8692
\begin {itemdescr }
8692
8693
\pnum
8693
8694
\effects \ Initializes \tcode {c} with \tcode {std::move(cont)} as the first argument and \tcode {a}
8694
- as the second argument, and initializes \tcode {comp} with \tcode {compare}.
8695
+ as the second argument, and initializes \tcode {comp} with \tcode {compare};
8696
+ calls \tcode {make_heap(c.begin(), c.end(), comp)}.
8695
8697
\end {itemdescr }
8696
8698
8697
8699
\begin {itemdecl }
Original file line number Diff line number Diff line change 3796
3796
void set_exception(exception_ptr p);
3797
3797
3798
3798
// setting the result with deferred notification
3799
- void set_value_at_thread_exit(const R& r);
3800
3799
void set_value_at_thread_exit(@\seebelow@ );
3801
3800
void set_exception_at_thread_exit(exception_ptr p);
3802
3801
};
3810
3809
\pnum
3811
3810
The implementation shall provide the template \tcode {promise} and two specializations,
3812
3811
\tcode {promise<R\& >} and \tcode {promise<\brk {}void>}. These differ only in the argument type
3813
- of the member function \tcode {set_value}, as set out in its description, below.
3812
+ of the member functions \tcode {set_value} and \tcode {set_value_at_thread_exit},
3813
+ as set out in their descriptions, below.
3814
3814
3815
3815
\pnum
3816
3816
The \tcode {set_value}, \tcode {set_exception}, \tcode {set_value_at_thread_exit},
3969
3969
\end {itemdecl }
3970
3970
3971
3971
\begin {itemdescr }
3972
+ \pnum
3973
+ \requires \tcode {p} is not null.
3974
+
3972
3975
\pnum
3973
3976
\effects atomically stores the exception pointer \tcode {p} in the shared state
3974
3977
and makes that state ready~(\ref {futures.state }).
4029
4032
\end {itemdecl }
4030
4033
4031
4034
\begin {itemdescr }
4035
+ \pnum
4036
+ \requires \tcode {p} is not null.
4037
+
4032
4038
\pnum
4033
4039
\effects Stores the exception pointer \tcode {p} in the shared state without
4034
4040
making that state ready immediately. Schedules that state to be made ready when
You can’t perform that action at this time.
0 commit comments