Skip to content

Commit 5fde7c5

Browse files
committed
Update
1 parent d450062 commit 5fde7c5

File tree

3,357 files changed

+127686
-124156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,357 files changed

+127686
-124156
lines changed

14882.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ div.footnote span.textsf { font-family: 'Noto Sans'; font-size: 8pt; }
291291
.example span.textsf { font-family: 'Noto Sans'; font-size: 10pt; }
292292
span.textsc { font-variant: small-caps; }
293293
span.nontermdef { font-style: italic; font-family: 'Noto Sans'; font-size: 10pt; }
294-
.rebnf a.nontermdef { font-style: italic; font-family: 'Noto Serif'; }
295294
span.emph { font-style: italic; }
296295
span.techterm { font-style: italic; }
297296
span.mathit { font-style: italic; }
@@ -629,6 +628,7 @@ table.enumerate td:first-child {
629628
:target ul { background-color: #4b6345; }
630629
:target a:link { color: #9fcdff; }
631630
:target a:visited { color: #d39aff; }
631+
:target a.hidden_link { text-decoration: none; color: inherit; }
632632
:target span.keyword { color: #32eade; }
633633
:target span.parenthesis { color: #ff4060; font-weight: bold; }
634634
:target span.curlybracket { color: #ff4060; font-weight: bold; }

accumulate.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<!DOCTYPE html><html lang='en'><head><title>[accumulate]</title><meta charset='UTF-8'/><link rel='stylesheet' type='text/css' href='14882.css'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Serif'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Sans'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Sans+Mono'/><link rel='icon' href='icon.png'/><link rel='stylesheet' type='text/css' href='expanded.css' title='Normal'/><link rel='alternate stylesheet' type='text/css' href='colored.css' title='Notes and examples colored'/><link rel='alternate stylesheet' type='text/css' href='normative-only.css' title='Notes and examples hidden'/></head><body><div class='wrapper'><h1 ><a class='secnum' style='min-width:50pt'>27</a> Algorithms library <a class='abbr_ref' href='./#algorithms'>[algorithms]</a></h1><h2 ><a class='secnum' style='min-width:65pt'>27.10</a> Generalized numeric operations <a class='abbr_ref' href='numeric.ops#accumulate'>[numeric.ops]</a></h2><h3 ><a class='secnum' style='min-width:80pt'>27.10.3</a> Accumulate <a class='abbr_ref'>[accumulate]</a></h3><div class='texpara'><div id='lib:accumulate'><div class='itemdecl'><div class='marginalizedparent'><a class='itemDeclLink' href='#lib:accumulate'>🔗</a></div><code class='itemdeclcode'><span class='keyword'>template</span><span class='anglebracket'>&lt;</span><span class='keyword'>class</span> InputIterator, <span class='keyword'>class</span> T<span class='anglebracket'>&gt;</span>
1+
<!DOCTYPE html><html lang='en'><head><title>[accumulate]</title><meta charset='UTF-8'/><link rel='stylesheet' type='text/css' href='14882.css'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Serif'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Sans'/><link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css2?family=Noto+Sans+Mono'/><link rel='icon' href='icon.png'/><link rel='stylesheet' type='text/css' href='expanded.css' title='Normal'/><link rel='alternate stylesheet' type='text/css' href='colored.css' title='Notes and examples colored'/><link rel='alternate stylesheet' type='text/css' href='normative-only.css' title='Notes and examples hidden'/></head><body><div class='wrapper'><h1 ><a class='secnum' style='min-width:50pt'>26</a> Algorithms library <a class='abbr_ref' href='./#algorithms'>[algorithms]</a></h1><h2 ><a class='secnum' style='min-width:65pt'>26.10</a> Generalized numeric operations <a class='abbr_ref' href='numeric.ops#accumulate'>[numeric.ops]</a></h2><h3 ><a class='secnum' style='min-width:80pt'>26.10.3</a> Accumulate <a class='abbr_ref'>[accumulate]</a></h3><div class='texpara'><div id='lib:accumulate'><div class='itemdecl'><div class='marginalizedparent'><a class='itemDeclLink' href='#lib:accumulate'>🔗</a></div><code class='itemdeclcode'><span class='keyword'>template</span><span class='anglebracket'>&lt;</span><span class='keyword'>class</span> InputIterator, <span class='keyword'>class</span> T<span class='anglebracket'>&gt;</span>
22
<span class='keyword'>constexpr</span> T accumulate<span class='parenthesis'>(</span>InputIterator first, InputIterator last, T init<span class='parenthesis'>)</span>;
33
<span class='keyword'>template</span><span class='anglebracket'>&lt;</span><span class='keyword'>class</span> InputIterator, <span class='keyword'>class</span> T, <span class='keyword'>class</span> BinaryOperation<span class='anglebracket'>&gt;</span>
44
<span class='keyword'>constexpr</span> T accumulate<span class='parenthesis'>(</span>InputIterator first, InputIterator last, T init,
55
BinaryOperation binary_op<span class='parenthesis'>)</span>;
6-
</code></div></div></div><div class='para' id='1'><div class='marginalizedparent'><a class='marginalized' href='#1'>1</a></div><div class='itemdescr'><div class='sourceLinkParent'><a class='sourceLink' href='https://github.com/cplusplus/draft/tree/9243ba5befaea8fd3e878e6114942db8d556a6e0/source/algorithms.tex#L9777'>#</a></div><div class='texpara'><div id='1.sentence-1' class='sentence'><i >Preconditions</i>: <span class='texttt'>T</span> meets
7-
the <i >Cpp17CopyConstructible</i> (Table <a href='utility.arg.requirements#tab:cpp17.copyconstructible' title='Table 32: Cpp17CopyConstructible requirements (in addition to Cpp17MoveConstructible)'>32</a>)
8-
and <i >Cpp17CopyAssignable</i> (Table <a href='utility.arg.requirements#tab:cpp17.copyassignable' title='Table 34: Cpp17CopyAssignable requirements (in addition to Cpp17MoveAssignable)'>34</a>) requirements<a class='hidden_link' href='#1.sentence-1'>.</a></div> <div id='1.sentence-2' class='sentence'>In the range [<span class='texttt'>first, last</span>],
6+
</code></div></div></div><div class='para' id='1'><div class='marginalizedparent'><a class='marginalized' href='#1'>1</a></div><div class='itemdescr'><div class='sourceLinkParent'><a class='sourceLink' href='https://github.com/cplusplus/draft/tree/bf43925ff0d9e80997918e98989892b4c7bf15f7/source/algorithms.tex#L9944'>#</a></div><div class='texpara'><div id='1.sentence-1' class='sentence'><i >Preconditions</i>: <span class='texttt'>T</span> meets
7+
the <a href='utility.arg.requirements#:Cpp17CopyConstructible' title='16.4.4.2&emsp;Template argument requirements&emsp;[utility.arg.requirements]'><i >Cpp17CopyConstructible</i></a> (Table <a href='utility.arg.requirements#tab:cpp17.copyconstructible' title='Table 32: Cpp17CopyConstructible requirements (in addition to Cpp17MoveConstructible)'>32</a>)
8+
and <a href='utility.arg.requirements#:Cpp17CopyAssignable' title='16.4.4.2&emsp;Template argument requirements&emsp;[utility.arg.requirements]'><i >Cpp17CopyAssignable</i></a> (Table <a href='utility.arg.requirements#tab:cpp17.copyassignable' title='Table 34: Cpp17CopyAssignable requirements (in addition to Cpp17MoveAssignable)'>34</a>) requirements<a class='hidden_link' href='#1.sentence-1'>.</a></div> <div id='1.sentence-2' class='sentence'>In the range [<span class='texttt'>first, last</span>],
99
<span class='texttt'>binary_<span class='shy'></span>op</span> neither modifies elements
10-
nor invalidates iterators or subranges<a class='hidden_link' href='#1.sentence-2'>.</a><a class='footnoteref' href='#footnote-214' id='footnoteref-214' title='The use of fully closed ranges is intentional.'>214</a></div></div></div></div><div class='para' id='2'><div class='marginalizedparent'><a class='marginalized' href='#2'>2</a></div><div class='itemdescr'><div class='sourceLinkParent'><a class='sourceLink' href='https://github.com/cplusplus/draft/tree/9243ba5befaea8fd3e878e6114942db8d556a6e0/source/algorithms.tex#L9789'>#</a></div><div class='texpara'><div id='2.sentence-1' class='sentence'><i >Effects</i>: Computes its result by
10+
nor invalidates iterators or subranges<a class='hidden_link' href='#1.sentence-2'>.</a><a class='footnoteref' href='#footnote-210' id='footnoteref-210' title='The use of fully closed ranges is intentional.'>210</a></div></div></div></div><div class='para' id='2'><div class='marginalizedparent'><a class='marginalized' href='#2'>2</a></div><div class='itemdescr'><div class='sourceLinkParent'><a class='sourceLink' href='https://github.com/cplusplus/draft/tree/bf43925ff0d9e80997918e98989892b4c7bf15f7/source/algorithms.tex#L9956'>#</a></div><div class='texpara'><div id='2.sentence-1' class='sentence'><i >Effects</i>: Computes its result by
1111
initializing the accumulator <span class='texttt'>acc</span> with the initial value <span class='texttt'>init</span>
1212
and then modifies it with
1313
<span class='texttt'>acc <span class='operator'>=</span> std<span class='operator'>&#x200b;::&#x200b;</span>move<span class='parenthesis'>(</span>acc<span class='parenthesis'>)</span> <span class='operator'>+</span> <span class='operator'>*</span>i</span> or
1414
<span class='texttt'>acc <span class='operator'>=</span> binary_<span class='shy'></span>op<span class='parenthesis'>(</span>std<span class='operator'>&#x200b;::&#x200b;</span>move<span class='parenthesis'>(</span>acc<span class='parenthesis'>)</span>, <span class='operator'>*</span>i<span class='parenthesis'>)</span></span>
15-
for every iterator <span class='texttt'>i</span> in the range [<span class='texttt'>first, last</span>) in order<a class='hidden_link' href='#2.sentence-1'>.</a><a class='footnoteref' href='#footnote-215' id='footnoteref-215' title='accumulate is similar to the APL reduction operator and Common Lisp reduce function, but it avoids the difficulty of defining the result of reduction on an empty sequence by always requiring an initial value.'>215</a></div></div></div></div><div class='footnoteSeparator'></div><div class='footnote' id='footnote-214'><div class='texpara'><a class='footnotenum' href='#footnote-214'>214)</a><a class='footnoteBacklink' href='#footnoteref-214'>214)</a> <div id='footnote-214.sentence-1' class='sentence'>The use of fully closed ranges is intentional<a class='hidden_link' href='#footnote-214.sentence-1'>.</a></div></div></div><div class='footnote' id='footnote-215'><div class='texpara'><a class='footnotenum' href='#footnote-215'>215)</a><a class='footnoteBacklink' href='#footnoteref-215'>215)</a> <div id='footnote-215.sentence-1' class='sentence'><span class='texttt'>accumulate</span> is similar
15+
for every iterator <span class='texttt'>i</span> in the range [<span class='texttt'>first, last</span>) in order<a class='hidden_link' href='#2.sentence-1'>.</a><a class='footnoteref' href='#footnote-211' id='footnoteref-211' title='accumulate is similar to the APL reduction operator and Common Lisp reduce function, but it avoids the difficulty of defining the result of reduction on an empty sequence by always requiring an initial value.'>211</a></div></div></div></div><div class='footnoteSeparator'></div><div class='footnote' id='footnote-210'><div class='texpara'><a class='footnotenum' href='#footnote-210'>210)</a><a class='footnoteBacklink' href='#footnoteref-210'>210)</a> <div id='footnote-210.sentence-1' class='sentence'>The use of fully closed ranges is intentional<a class='hidden_link' href='#footnote-210.sentence-1'>.</a></div></div></div><div class='footnote' id='footnote-211'><div class='texpara'><a class='footnotenum' href='#footnote-211'>211)</a><a class='footnoteBacklink' href='#footnoteref-211'>211)</a> <div id='footnote-211.sentence-1' class='sentence'><span class='texttt'>accumulate</span> is similar
1616
to the APL reduction operator and Common Lisp reduce function,
1717
but it avoids the difficulty of defining the result of reduction
18-
on an empty sequence by always requiring an initial value<a class='hidden_link' href='#footnote-215.sentence-1'>.</a></div></div></div></div></body></html>
18+
on an empty sequence by always requiring an initial value<a class='hidden_link' href='#footnote-211.sentence-1'>.</a></div></div></div></div></body></html>

0 commit comments

Comments
 (0)