Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
timsong-cpp committed Apr 29, 2024
1 parent 7092cc3 commit a03b56e
Show file tree
Hide file tree
Showing 3,290 changed files with 82,733 additions and 75,543 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
59 changes: 37 additions & 22 deletions 14882.css
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,12 @@ table.enumerate td:first-child {
@media (prefers-color-scheme: dark) {
body {
background-color: #171717;
color: #b0b0b0;
color: #c0c0c0;
}

span.mjx-mstyle { color: #b0b0b0 !important }
span.mjx-mstyle { color: #c0c0c0 !important }

a:link { color: #549df2; }
a:link { color: #64adff; }
a:visited { color: #a36ae6; }

a.hidden_link {
Expand All @@ -593,10 +593,7 @@ table.enumerate td:first-child {

span.phantom { color: #171717; }

:target { background-color: #3b4343; }
:target .codeblock { background-color: #3b4343; }
:target ul { background-color: #3b4343; }
a.index:before { color: #b0b0b0; background-color: #3b4343; }
a.index:before { color: #c0c0c0; background-color: #4b6353; }

.comment { color: #35ba00; }
.footnote .comment { color: #35ba00; }
Expand All @@ -607,25 +604,43 @@ table.enumerate td:first-child {
span.parenthesis { color: #cf1915; }
span.curlybracket { color: #cf1915; }
span.squarebracket { color: #cf1915; }
span.literal { color: #bF8827; }
span.literalterminal { color: #bF8827; }
span.literal { color: #bf8827; }
span.literalterminal { color: #bf8827; }
span.operator { color: #baa6b9; }
span.anglebracket { color: #baa6b9; }
span.preprocessordirective { color: #b27c58; }

table { border-color: #b0b0b0; }
td.border { border-color: #b0b0b0; }
td.border { border-left-color: #b0b0b0; }
tr.rowsep, td.cline { border-top-color: #b0b0b0; }
tr.capsep { border-top-color: #b0b0b0; }
th { border-bottom-color: #b0b0b0; }

.footnoteSeparator { background-color: #b0b0b0; }

text { fill: #b0b0b0; }
path { stroke: #b0b0b0; }
polygon { stroke: #b0b0b0; fill: #b0b0b0; }
ellipse { stroke: #b0b0b0; }
table { border-color: #c0c0c0; }
td.border { border-color: #c0c0c0; }
td.border { border-left-color: #c0c0c0; }
tr.rowsep, td.cline { border-top-color: #c0c0c0; }
tr.capsep { border-top-color: #c0c0c0; }
th { border-bottom-color: #c0c0c0; }

.footnoteSeparator { background-color: #c0c0c0; }

text { fill: #c0c0c0; }
path { stroke: #c0c0c0; }
polygon { stroke: #c0c0c0; fill: #c0c0c0; }
ellipse { stroke: #c0c0c0; }

:target { background-color: #4b6353; color: #ffffff; }
:target .codeblock { background-color: #4b6353; }
:target ul { background-color: #4b6353; }
:target a:link { color: #64bdff; }
:target a:visited { color: #d39aff; }
:target span.keyword { color: #32eade; }
:target span.parenthesis { color: #ff5050; }
:target span.curlybracket { color: #ff5050; }
:target span.squarebracket { color: #ff5050; }
:target span.literal { color: #dfa847; }
:target span.literalterminal { color: #dfa847; }
:target span.operator { color: #dac6d9; }
:target span.anglebracket { color: #dac6d9; }
:target .comment { color: #55ef00; }
:target .footnote .comment { color: #55ef00; }
:target .example .comment { color: #55ef00; }
:target .note .comment { color: #55ef00; }
}
.mjx-chtml {display: inline-block; line-height: 0; text-indent: 0; text-align: left; text-transform: none; font-style: normal; font-weight: normal; font-size: 100%; font-size-adjust: none; letter-spacing: normal; word-wrap: normal; word-spacing: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0; min-height: 0; border: 0; margin: 0; padding: 1px 0}
.MJXc-display {display: block;background:inherit; text-align: center; margin: 1em 0; padding: 0}
Expand Down
8 changes: 4 additions & 4 deletions accumulate.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<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>
<span class='keyword'>constexpr</span> T accumulate<span class='parenthesis'>(</span>InputIterator first, InputIterator last, T init,
BinaryOperation binary_op<span class='parenthesis'>)</span>;
</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/8238252bcec14f76e97133db32721beaec5c749b/source/algorithms.tex#L9682'>#</a></div><div class='texpara'><div id='1.sentence-1' class='sentence'><i >Preconditions</i>: <span class='texttt'>T</span> meets
</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/12b6307589257a803527eb38c43f08f867d59322/source/algorithms.tex#L9772'>#</a></div><div class='texpara'><div id='1.sentence-1' class='sentence'><i >Preconditions</i>: <span class='texttt'>T</span> meets
the <i >Cpp17CopyConstructible</i> (Table <a href='utility.arg.requirements#tab:cpp17.copyconstructible' title='Table 32: Cpp17CopyConstructible requirements (in addition to Cpp17MoveConstructible)'>32</a>)
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>],
<span class='texttt'>binary_<span class='shy'></span>op</span> neither modifies elements
nor invalidates iterators or subranges<a class='hidden_link' href='#1.sentence-2'>.</a><a class='footnoteref' href='#footnote-218' id='footnoteref-218' title='The use of fully closed ranges is intentional.'>218</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/8238252bcec14f76e97133db32721beaec5c749b/source/algorithms.tex#L9694'>#</a></div><div class='texpara'><div id='2.sentence-1' class='sentence'><i >Effects</i>: Computes its result by
nor invalidates iterators or subranges<a class='hidden_link' href='#1.sentence-2'>.</a><a class='footnoteref' href='#footnote-215' id='footnoteref-215' title='The use of fully closed ranges is intentional.'>215</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/12b6307589257a803527eb38c43f08f867d59322/source/algorithms.tex#L9784'>#</a></div><div class='texpara'><div id='2.sentence-1' class='sentence'><i >Effects</i>: Computes its result by
initializing the accumulator <span class='texttt'>acc</span> with the initial value <span class='texttt'>init</span>
and then modifies it with
<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
<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>
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-219' id='footnoteref-219' 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.'>219</a></div></div></div></div><div class='footnoteSeparator'></div><div class='footnote' id='footnote-218'><div class='texpara'><a class='footnotenum' href='#footnote-218'>218)</a><a class='footnoteBacklink' href='#footnoteref-218'>218)</a> <div id='footnote-218.sentence-1' class='sentence'>The use of fully closed ranges is intentional<a class='hidden_link' href='#footnote-218.sentence-1'>.</a></div></div></div><div class='footnote' id='footnote-219'><div class='texpara'><a class='footnotenum' href='#footnote-219'>219)</a><a class='footnoteBacklink' href='#footnoteref-219'>219)</a> <div id='footnote-219.sentence-1' class='sentence'><span class='texttt'>accumulate</span> is similar
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-216' id='footnoteref-216' 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.'>216</a></div></div></div></div><div class='footnoteSeparator'></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'>The use of fully closed ranges is intentional<a class='hidden_link' href='#footnote-215.sentence-1'>.</a></div></div></div><div class='footnote' id='footnote-216'><div class='texpara'><a class='footnotenum' href='#footnote-216'>216)</a><a class='footnoteBacklink' href='#footnoteref-216'>216)</a> <div id='footnote-216.sentence-1' class='sentence'><span class='texttt'>accumulate</span> 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<a class='hidden_link' href='#footnote-219.sentence-1'>.</a></div></div></div></div></body></html>
on an empty sequence by always requiring an initial value<a class='hidden_link' href='#footnote-216.sentence-1'>.</a></div></div></div></div></body></html>
Loading

0 comments on commit a03b56e

Please sign in to comment.