Skip to content

Commit 41a2188

Browse files
committed
Updates from Overleaf
1 parent f1b2391 commit 41a2188

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

book.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
\frontmatter
3434
\input{chapters/00_title_page}
3535

36-
\input{chapters/01_preface} % Reviewed
36+
%\input{chapters/01_preface} % Reviewed
3737

3838
\mainmatter
3939
\tableofcontents
4040

4141
\input{chapters/02_introduction} % In review
42-
\input{chapters/03_algorithms_00_main} % In review
43-
\input{chapters/04_ranges_in_depth} % In review
42+
%\input{chapters/03_algorithms_00_main} % In review
43+
%\input{chapters/04_ranges_in_depth} % In review
4444

4545
\appendix
4646
\input{chapters/XX_index}

chapters/02_introduction.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,16 @@ \section{A simpler mental model for iterators}
127127

128128
Ranges passed in as arguments are usually apparent, typically specified by pair of iterators.
129129

130-
130+
\begin{box-note}
131+
\footnotesize Example with two ranges passed in as an argument. The input range is fully specified, and the end iterator for the output range is implied from the number of elements in the input range.
132+
\tcblower
133+
\cppfile{code_examples/introduction/mental_range_code.h}
134+
\end{box-note}
131135

132136
The less obvious can be the ranges returned by the algorithms. In some cases, the range is evident from the algorithm.
133137

138+
139+
134140
In some cases, a single returned iterator denotes multiple ranges.
135141

136142
Even when the algorithms seem to return an iterator to a specific element, we can still think of the output as a range.

0 commit comments

Comments
 (0)