Skip to content

Commit aa66e0d

Browse files
committed
Merge 2016-02 LWG Motion 1
2 parents e826219 + 54dac0b commit aa66e0d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

source/containers.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8680,7 +8680,8 @@
86808680
\begin{itemdescr}
86818681
\pnum
86828682
\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)}.
86848685
\end{itemdescr}
86858686

86868687
\begin{itemdecl}
@@ -8691,7 +8692,8 @@
86918692
\begin{itemdescr}
86928693
\pnum
86938694
\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)}.
86958697
\end{itemdescr}
86968698

86978699
\begin{itemdecl}

source/threads.tex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,7 +3796,6 @@
37963796
void set_exception(exception_ptr p);
37973797

37983798
// setting the result with deferred notification
3799-
void set_value_at_thread_exit(const R& r);
38003799
void set_value_at_thread_exit(@\seebelow@);
38013800
void set_exception_at_thread_exit(exception_ptr p);
38023801
};
@@ -3810,7 +3809,8 @@
38103809
\pnum
38113810
The implementation shall provide the template \tcode{promise} and two specializations,
38123811
\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.
38143814

38153815
\pnum
38163816
The \tcode{set_value}, \tcode{set_exception}, \tcode{set_value_at_thread_exit},
@@ -3969,6 +3969,9 @@
39693969
\end{itemdecl}
39703970

39713971
\begin{itemdescr}
3972+
\pnum
3973+
\requires \tcode{p} is not null.
3974+
39723975
\pnum
39733976
\effects atomically stores the exception pointer \tcode{p} in the shared state
39743977
and makes that state ready~(\ref{futures.state}).
@@ -4029,6 +4032,9 @@
40294032
\end{itemdecl}
40304033

40314034
\begin{itemdescr}
4035+
\pnum
4036+
\requires \tcode{p} is not null.
4037+
40324038
\pnum
40334039
\effects Stores the exception pointer \tcode{p} in the shared state without
40344040
making that state ready immediately. Schedules that state to be made ready when

0 commit comments

Comments
 (0)