Skip to content

Commit 46a4cdb

Browse files
committed
Merge branch 'v1' into v2
2 parents 883e8de + ddf86ab commit 46a4cdb

File tree

9 files changed

+54
-52
lines changed

9 files changed

+54
-52
lines changed

algorithms.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1>Search</h1>
3434
ForwardIterator search(ForwardIterator first, ForwardIterator last,
3535
const Searcher&amp; searcher);</cxx-signature>
3636

37-
<cxx-effects>Equivalent to <code>return searcher(first, last)</code>.</cxx-effects>
37+
<cxx-effects>Equivalent to <code>return searcher(first, last);</code></cxx-effects>
3838
<cxx-remarks><code>Searcher</code> need not meet the <code>CopyConstructible</code> requirements.</cxx-remarks>
3939
</cxx-function>
4040
</cxx-section>

func.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h1>Class template <code>default_searcher</code></h1>
311311
<cxx-signature>template&lt;class ForwardIterator2&gt;
312312
ForwardIterator2 operator()(ForwardIterator2 first, ForwardIterator2 last) const;</cxx-signature>
313313

314-
<cxx-effects>Equivalent to <code>std::search(first, last, pat_first_, pat_last_, pred_)</code>.</cxx-effects>
314+
<cxx-effects>Equivalent to <code>return std::search(<w-br></w-br>first, last, pat_first_, pat_last_, pred_);</code></cxx-effects>
315315
</cxx-function>
316316

317317
<cxx-section id="func.searchers.default.creation">
@@ -323,7 +323,7 @@ <h1><code>default_searcher</code> creation functions</h1>
323323
make_default_searcher(ForwardIterator pat_first, ForwardIterator pat_last,
324324
BinaryPredicate pred = BinaryPredicate());</cxx-signature>
325325

326-
<cxx-effects>Equivalent to <code>default_searcher&lt;ForwardIterator, BinaryPredicate&gt;(pat_first, pat_last, pred)</code>.</cxx-effects>
326+
<cxx-effects>Equivalent to <code>return default_searcher&lt;ForwardIterator, BinaryPredicate&gt;(<w-br></w-br>pat_first, pat_last, pred);</code></cxx-effects>
327327
</cxx-function>
328328
</cxx-section>
329329
</cxx-section>
@@ -392,7 +392,7 @@ <h1><code>boyer_moore_searcher</code> creation functions</h1>
392392
make_boyer_moore_searcher(RandomAccessIterator pat_first, RandomAccessIterator pat_last,
393393
Hash hf = Hash(), BinaryPredicate pred = BinaryPredicate());</cxx-signature>
394394

395-
<cxx-effects>Equivalent to <code>boyer_moore_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br></w-br>pat_first, pat_last, hf, pred)</code>.</cxx-effects>
395+
<cxx-effects>Equivalent to <code>return boyer_moore_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br></w-br>pat_first, pat_last, hf, pred);</code></cxx-effects>
396396
</cxx-function>
397397
</cxx-section>
398398
</cxx-section>
@@ -467,7 +467,7 @@ <h1><code>boyer_moore_horspool_searcher</code> creation functions</h1>
467467
RandomAccessIterator pat_first, RandomAccessIterator pat_last,
468468
Hash hf = Hash(), BinaryPredicate pred = BinaryPredicate());</cxx-signature>
469469

470-
<cxx-effects>Equivalent to <code>boyer_moore_horspool_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br></w-br>pat_first, pat_last, hf, pred)</code>.</cxx-effects>
470+
<cxx-effects>Equivalent to <code>return boyer_moore_horspool_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br></w-br>pat_first, pat_last, hf, pred);</code></cxx-effects>
471471
</cxx-function>
472472
</cxx-section>
473473
</cxx-section>

fundamentals-ts.html

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ <h1>Contents</h1>
21842184
</td></tr>
21852185
<tr>
21862186
<td>N3916</td>
2187-
<td>Type-erased allocator for std::function</td>
2187+
<td>Type-erased allocator for <code>std::function</code></td>
21882188
<td><cxx-ref to="func.wrap.func"><a title="func.wrap.func" href="#func.wrap.func">4.2</a></cxx-ref></td>
21892189
<td><code>function_erased_allocator</code></td>
21902190
<td>201406</td>
@@ -2280,15 +2280,15 @@ <h1>Contents</h1>
22802280
</tr>
22812281
<tr>
22822282
<td>N3916</td>
2283-
<td>Type-erased allocator for std::promise</td>
2283+
<td>Type-erased allocator for <code>std::promise</code></td>
22842284
<td><cxx-ref to="futures.promise"><a title="futures.promise" href="#futures.promise">11.2</a></cxx-ref></td>
22852285
<td><code>promise_erased_allocator</code></td>
22862286
<td>201406</td>
22872287
<td><code>&lt;experimental/future&gt;</code></td>
22882288
</tr>
22892289
<tr>
22902290
<td>N3916</td>
2291-
<td>Type-erased allocator for std::packaged_task</td>
2291+
<td>Type-erased allocator for <code>std::packaged_task</code></td>
22922292
<td><cxx-ref to="futures.task"><a title="futures.task" href="#futures.task">11.3</a></cxx-ref></td>
22932293
<td><code>packaged_task_erased_allocator</code></td>
22942294
<td>201406</td>
@@ -2371,7 +2371,7 @@ <h1>Contents</h1>
23712371
<cxx-remarks>
23722372

23732373
<dt>Remarks:</dt><dd>
2374-
automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
2374+
Automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
23752375
Meets the BinaryTypeTrait requirements (<cxx-ref in="cxx" to="meta.rqmts">C++14 <span title="meta.rqmts">§20.10.1</span></cxx-ref>).
23762376
The implementation shall provide a definition that is derived from <code>true_type</code> if a type <code>T::allocator_type</code> exists
23772377
and <ins>either</ins> <code>is_convertible_v&lt;Alloc, T::allocator_type&gt; != false</code>
@@ -2837,7 +2837,7 @@ <h1>Contents</h1>
28372837
<li>The invocation parameters of <code><em>INVOKE</em>(S(), "abc", 5)</code> are <code>(const char *, int)</code>.
28382838
The defaulted parameter <code>j</code> does not correspond to an argument.</li>
28392839
<li>The invocation parameters of <code><em>INVOKE</em>(S(), locale(), 5)</code> are <code>(locale, int)</code>.
2840-
Arguments corresponding to ellipsis maintain their types</li>
2840+
Arguments corresponding to ellipsis maintain their types.</li>
28412841
</ul>
28422842

28432843
<span class="nowrap">— <em>end example</em> ]</span>
@@ -4952,7 +4952,7 @@ <h1>Contents</h1>
49524952

49534953
<cxx-effects para_num="5" id="func.searchers.default.5">
49544954

4955-
<dt>Effects:</dt><dd>Equivalent to <code>std::search(first, last, pat_first_, pat_last_, pred_)</code>.</dd>
4955+
<dt>Effects:</dt><dd>Equivalent to <code>return std::search(<w-br><wbr></w-br>first, last, pat_first_, pat_last_, pred_);</code></dd>
49564956
</cxx-effects>
49574957

49584958
</dl>
@@ -4979,7 +4979,7 @@ <h1>Contents</h1>
49794979

49804980
<cxx-effects para_num="2" id="func.searchers.default.creation.2">
49814981

4982-
<dt>Effects:</dt><dd>Equivalent to <code>default_searcher&lt;ForwardIterator, BinaryPredicate&gt;(pat_first, pat_last, pred)</code>.</dd>
4982+
<dt>Effects:</dt><dd>Equivalent to <code>return default_searcher&lt;ForwardIterator, BinaryPredicate&gt;(<w-br><wbr></w-br>pat_first, pat_last, pred);</code></dd>
49834983
</cxx-effects>
49844984

49854985
</dl>
@@ -5110,7 +5110,7 @@ <h1>Contents</h1>
51105110

51115111
<cxx-effects para_num="2" id="func.searchers.boyer_moore.creation.2">
51125112

5113-
<dt>Effects:</dt><dd>Equivalent to <code>boyer_moore_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br><wbr></w-br>pat_first, pat_last, hf, pred)</code>.</dd>
5113+
<dt>Effects:</dt><dd>Equivalent to <code>return boyer_moore_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br><wbr></w-br>pat_first, pat_last, hf, pred);</code></dd>
51145114
</cxx-effects>
51155115

51165116
</dl>
@@ -5247,7 +5247,7 @@ <h1>Contents</h1>
52475247

52485248
<cxx-effects para_num="2" id="func.searchers.boyer_moore_horspool.creation.2">
52495249

5250-
<dt>Effects:</dt><dd>Equivalent to <code>boyer_moore_horspool_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br><wbr></w-br>pat_first, pat_last, hf, pred)</code>.</dd>
5250+
<dt>Effects:</dt><dd>Equivalent to <code>return boyer_moore_horspool_searcher&lt;RandomAccessIterator, Hash, BinaryPredicate&gt;(<w-br><wbr></w-br>pat_first, pat_last, hf, pred);</code></dd>
52515251
</cxx-effects>
52525252

52535253
</dl>
@@ -6262,7 +6262,7 @@ <h1>Contents</h1>
62626262

62636263
<cxx-effects para_num="22" id="optional.object.observe.22">
62646264

6265-
<dt>Effects:</dt><dd>Equivalent to <code>return bool(*this) ? **this : static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>))</code>.</dd>
6265+
<dt>Effects:</dt><dd>Equivalent to <code>return bool(*this) ? **this : static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>));</code></dd>
62666266
</cxx-effects>
62676267
<cxx-remarks para_num="23" id="optional.object.observe.23">
62686268

@@ -6283,7 +6283,7 @@ <h1>Contents</h1>
62836283

62846284
<cxx-effects para_num="25" id="optional.object.observe.25">
62856285

6286-
<dt>Effects:</dt><dd>Equivalent to <code>return bool(*this) ? <w-br><wbr></w-br>std::move(**this) : <w-br><wbr></w-br>static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>))</code>.</dd>
6286+
<dt>Effects:</dt><dd>Equivalent to <code>return bool(*this) ? <w-br><wbr></w-br>std::move(**this) : <w-br><wbr></w-br>static_cast&lt;T&gt;(std::forward&lt;U&gt;(<var>v</var>));</code></dd>
62876287
</cxx-effects>
62886288
<cxx-remarks para_num="26" id="optional.object.observe.26">
62896289

@@ -7820,7 +7820,7 @@ <h1>Contents</h1>
78207820
<table is="cxx-table" id="tab:string.view.ctr.2">
78217821

78227822

7823-
<caption>Table 9 — <wbr><span><code>basic_string_view(const charT*)<code> effects</code></code></span></caption>
7823+
<caption>Table 9 — <wbr><span><code>basic_string_view(const charT*)</code> effects</span></caption>
78247824

78257825
<tbody><tr><th>Element</th><th>Value</th></tr>
78267826
<tr><td><code>data_</code></td><td><code>str</code></td></tr>
@@ -8259,7 +8259,7 @@ <h1>Contents</h1>
82598259

82608260
<cxx-effects para_num="2" id="string.view.ops.2">
82618261

8262-
<dt>Effects:</dt><dd>Equivalent to <code>basic_string&lt;charT, traits, Allocator&gt;(begin(), end()).</code></dd>
8262+
<dt>Effects:</dt><dd>Equivalent to <code>return basic_string&lt;charT, traits, Allocator&gt;(begin(), end());</code></dd>
82638263
</cxx-effects>
82648264
<cxx-complexity para_num="3" id="string.view.ops.3">
82658265

@@ -8399,7 +8399,7 @@ <h1>Contents</h1>
83998399

84008400
<cxx-effects para_num="24" id="string.view.ops.24">
84018401

8402-
<dt>Effects:</dt><dd>Equivalent to <code>substr(pos1, n1).compare(str)</code>.</dd>
8402+
<dt>Effects:</dt><dd>Equivalent to <code>return substr(pos1, n1).compare(str);</code></dd>
84038403
</cxx-effects>
84048404

84058405
</dl>
@@ -8415,7 +8415,7 @@ <h1>Contents</h1>
84158415

84168416
<cxx-effects para_num="26" id="string.view.ops.26">
84178417

8418-
<dt>Effects:</dt><dd>Equivalent to <code>substr(pos1, n1).compare(str.substr(pos2, n2))</code>.</dd>
8418+
<dt>Effects:</dt><dd>Equivalent to <code>return substr(pos1, n1).compare(str.substr(pos2, n2));</code></dd>
84198419
</cxx-effects>
84208420

84218421
</dl>
@@ -8430,7 +8430,7 @@ <h1>Contents</h1>
84308430

84318431
<cxx-effects para_num="28" id="string.view.ops.28">
84328432

8433-
<dt>Effects:</dt><dd>Equivalent to <code>compare(basic_string_view(s))</code>.</dd>
8433+
<dt>Effects:</dt><dd>Equivalent to <code>return compare(basic_string_view(s));</code></dd>
84348434
</cxx-effects>
84358435

84368436
</dl>
@@ -8445,7 +8445,7 @@ <h1>Contents</h1>
84458445

84468446
<cxx-effects para_num="30" id="string.view.ops.30">
84478447

8448-
<dt>Effects:</dt><dd>Equivalent to <code>substr(pos1, n1).compare(basic_string_view(s))</code>.</dd>
8448+
<dt>Effects:</dt><dd>Equivalent to <code>return substr(pos1, n1).compare(basic_string_view(s));</code></dd>
84498449
</cxx-effects>
84508450

84518451
</dl>
@@ -8461,7 +8461,7 @@ <h1>Contents</h1>
84618461

84628462
<cxx-effects para_num="32" id="string.view.ops.32">
84638463

8464-
<dt>Effects:</dt><dd>Equivalent to <code>substr(pos1, n1).compare(basic_string_view(s, n2))</code>.</dd>
8464+
<dt>Effects:</dt><dd>Equivalent to <code>return substr(pos1, n1).compare(basic_string_view(s, n2));</code></dd>
84658465
</cxx-effects>
84668466

84678467
</dl>
@@ -8483,15 +8483,15 @@ <h1>Contents</h1>
84838483

84848484
<p para_num="3" id="string.view.find.3">Each member function of the form</p>
84858485
<pre><code>constexpr <var>return-type fx1</var>(const charT* s, size_type pos);</code></pre>
8486-
<p class="cont">is equivalent to <code><var>fx1</var>(basic_string_view(s), pos)</code>.</p>
8486+
<p class="cont">is equivalent to <code>return <var>fx1</var>(basic_string_view(s), pos);</code></p>
84878487

84888488
<p para_num="4" id="string.view.find.4">Each member function of the form</p>
84898489
<pre><code>constexpr <var>return-type fx1</var>(const charT* s, size_type pos, size_type n);</code></pre>
8490-
<p class="cont">is equivalent to <code><var>fx1</var>(basic_string_view(s, n), pos)</code>.</p>
8490+
<p class="cont">is equivalent to <code>return <var>fx1</var>(basic_string_view(s, n), pos);</code></p>
84918491

84928492
<p para_num="5" id="string.view.find.5">Each member function of the form</p>
84938493
<pre><code>constexpr <var>return-type fx2</var>(charT c, size_type pos);</code></pre>
8494-
<p class="cont">is equivalent to <code><var>fx2</var>(basic_string_view(&amp;c, 1), pos)</code>.</p>
8494+
<p class="cont">is equivalent to <code>return <var>fx2</var>(basic_string_view(&amp;c, 1), pos);</code></p>
84958495

84968496
<cxx-function para_num="6" id="string.view.find.6">
84978497

@@ -8874,7 +8874,7 @@ <h1>Contents</h1>
88748874

88758875
<cxx-effects para_num="2" id="string.view.io.2">
88768876

8877-
<dt>Effects:</dt><dd>Equivalent to <code>os &lt;&lt; str.to_string()</code>.</dd>
8877+
<dt>Effects:</dt><dd>Equivalent to <code>return os &lt;&lt; str.to_string();</code></dd>
88788878
</cxx-effects>
88798879

88808880
</dl>
@@ -10393,7 +10393,7 @@ <h1>Contents</h1>
1039310393

1039410394
<cxx-returns para_num="2" id="memory.polymorphic.allocator.mem.2">
1039510395

10396-
<dt>Returns:</dt><dd>Equivalent to <code>static_cast&lt;Tp*&gt;(m_resource-&gt;allocate(n * sizeof(Tp), alignof(Tp)))</code>.</dd>
10396+
<dt>Returns:</dt><dd>Equivalent to <code>return static_cast&lt;Tp*&gt;(m_resource-&gt;allocate(n * sizeof(Tp), alignof(Tp)));</code></dd>
1039710397
</cxx-returns>
1039810398

1039910399
</dl>
@@ -10448,7 +10448,7 @@ <h1>Contents</h1>
1044810448
</cxx-effects>
1044910449
<cxx-throws para_num="10" id="memory.polymorphic.allocator.mem.10">
1045010450

10451-
<dt>Throws:</dt><dd>: Nothing unless the constructor for <code>T</code> throws.</dd>
10451+
<dt>Throws:</dt><dd>Nothing unless the constructor for <code>T</code> throws.</dd>
1045210452
</cxx-throws>
1045310453

1045410454
</dl>
@@ -10485,7 +10485,8 @@ <h1>Contents</h1>
1048510485
then <code>xprime</code> is <code>tuple_cat(std::move(x), make_tuple(this-&gt;resource()))</code>.</li>
1048610486
<li>Otherwise the program is ill formed.</li>
1048710487
</ul>
10488-
and let yprime be a tuple constructed from y according to the appropriate rule from the following list:
10488+
and let <code>yprime</code> be a tuple constructed from <code>y</code>
10489+
according to the appropriate rule from the following list:
1048910490
<ul>
1049010491
<li>If <code>uses_allocator_v&lt;T2,memory_resource*&gt;</code> is <code>false</code> and
1049110492
<code>is_constructible_v&lt;T,Args2...&gt;</code> is <code>true</code>, then <code>yprime</code> is <code>y</code>.</li>
@@ -13304,7 +13305,7 @@ <h1>Contents</h1>
1330413305

1330513306
<cxx-effects para_num="2" id="alg.search.2">
1330613307

13307-
<dt>Effects:</dt><dd>Equivalent to <code>return searcher(first, last)</code>.</dd>
13308+
<dt>Effects:</dt><dd>Equivalent to <code>return searcher(first, last);</code></dd>
1330813309
</cxx-effects>
1330913310
<cxx-remarks para_num="3" id="alg.search.3">
1331013311

general.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ <h1>Feature-testing recommendations (Informative)</h1>
266266
</tr>
267267
<tr>
268268
<td>N3916</td>
269-
<td>Type-erased allocator for std::function</td>
269+
<td>Type-erased allocator for <code>std::function</code></td>
270270
<td><cxx-ref to="func.wrap.func"></cxx-ref></td>
271271
<td><code>function_erased_allocator</code></td>
272272
<td>201406</td>
@@ -362,15 +362,15 @@ <h1>Feature-testing recommendations (Informative)</h1>
362362
</tr>
363363
<tr>
364364
<td>N3916</td>
365-
<td>Type-erased allocator for std::promise</td>
365+
<td>Type-erased allocator for <code>std::promise</code></td>
366366
<td><cxx-ref to="futures.promise"></cxx-ref></td>
367367
<td><code>promise_erased_allocator</code></td>
368368
<td>201406</td>
369369
<td><code>&lt;experimental/future></code></td>
370370
</tr>
371371
<tr>
372372
<td>N3916</td>
373-
<td>Type-erased allocator for std::packaged_task</td>
373+
<td>Type-erased allocator for <code>std::packaged_task</code></td>
374374
<td><cxx-ref to="futures.task"></cxx-ref></td>
375375
<td><code>packaged_task_erased_allocator</code></td>
376376
<td>201406</td>

memory.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ <h1><code>polymorphic_allocator</code> member functions</h1>
918918

919919
<cxx-function>
920920
<cxx-signature>Tp* allocate(size_t n);</cxx-signature>
921-
<cxx-returns>Equivalent to <code>static_cast&lt;Tp*>(m_resource->allocate(n * sizeof(Tp), alignof(Tp)))</code>.</cxx-returns>
921+
<cxx-returns>Equivalent to <code>return static_cast&lt;Tp*>(m_resource->allocate(n * sizeof(Tp), alignof(Tp)));</code></cxx-returns>
922922
</cxx-function>
923923

924924
<cxx-function>
@@ -938,7 +938,7 @@ <h1><code>polymorphic_allocator</code> member functions</h1>
938938
<cxx-effects>Construct a <code>T</code> object at <code>p</code> by <cxx-term>uses-allocator construction</cxx-term>
939939
with allocator <code>this->resource()</code> (<cxx-ref to="mods.allocator.uses"></cxx-ref>)
940940
and constructor arguments <code>std::forward&lt;Args>(args)...</code>.</cxx-effects>
941-
<cxx-throws>: Nothing unless the constructor for <code>T</code> throws.</cxx-throws>
941+
<cxx-throws>Nothing unless the constructor for <code>T</code> throws.</cxx-throws>
942942
</cxx-function>
943943

944944
<cxx-function>
@@ -962,7 +962,8 @@ <h1><code>polymorphic_allocator</code> member functions</h1>
962962
then <code>xprime</code> is <code>tuple_cat(std::move(x), make_tuple(this->resource()))</code>.</li>
963963
<li>Otherwise the program is ill formed.</li>
964964
</ul>
965-
and let yprime be a tuple constructed from y according to the appropriate rule from the following list:
965+
and let <code>yprime</code> be a tuple constructed from <code>y</code>
966+
according to the appropriate rule from the following list:
966967
<ul>
967968
<li>If <code>uses_allocator_v&lt;T2,memory_resource*></code> is <code>false</code> and
968969
<code>is_constructible_v&lt;T,Args2...></code> is <code>true</code>, then <code>yprime</code> is <code>y</code>.</li>

mods.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>Uses-allocator construction</h1>
2222
<cxx-function>
2323
<cxx-signature>template &lt;class T, class Alloc> struct uses_allocator;</cxx-signature>
2424
<cxx-remarks>
25-
automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
25+
Automatically detects whether <code>T</code> has a nested <code>allocator_type</code> that is convertible from <code>Alloc</code>.
2626
Meets the BinaryTypeTrait requirements (<cxx-ref in="cxx" to="meta.rqmts"></cxx-ref>).
2727
The implementation shall provide a definition that is derived from <code>true_type</code> if a type <code>T::allocator_type</code> exists
2828
and <ins>either</ins> <code>is_convertible_v&lt;Alloc, T::allocator_type> != false</code>

0 commit comments

Comments
 (0)