Skip to content

Commit 355a7af

Browse files
committed
Remove confusing example of is_ready, issue #24
1 parent 3361cad commit 355a7af

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

N4123_future.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,17 +302,6 @@ <h1> <del>Changes to c</del><ins>C</ins>lass template <code>future</code></h1>
302302
<cxx-function>
303303
<cxx-signature>bool is_ready() const;</cxx-signature>
304304
<cxx-Returns> <code>true</code> if the shared state is ready, <code>false</code> if it isn't.</cxx-Returns>
305-
<cxx-remarks><ins>The function returns <code>false</code> if the shared state has been invalidated
306-
(for example, by <code>get()</code> or <code>wait()</code>).</ins></cxx-remarks>
307-
<cxx-example>
308-
<pre><ins>void g(futue&lt;int> f) {
309-
if (f.is_ready()) {
310-
f.get();
311-
assert(!f.is_ready());
312-
}
313-
}
314-
</ins></pre>
315-
</cxx-example>
316305
</cxx-function>
317306

318307
</cxx-section>

0 commit comments

Comments
 (0)