Skip to content

Commit b609f3b

Browse files
committed
[iterators] Add page breaks, and reflow some code lines.
1 parent 6d0fd47 commit b609f3b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/iterators.tex

+13-5
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@
426426
-> decltype(std::begin(c));
427427
template<class C> constexpr auto cend(const C& c) noexcept(noexcept(std::end(c)))
428428
-> decltype(std::end(c));
429+
429430
template<class C> constexpr auto rbegin(C& c) -> decltype(c.rbegin());
430431
template<class C> constexpr auto rbegin(const C& c) -> decltype(c.rbegin());
431432
template<class C> constexpr auto rend(C& c) -> decltype(c.rend());
@@ -442,9 +443,11 @@
442443
template<class C> constexpr auto ssize(const C& c)
443444
-> common_type_t<ptrdiff_t, make_signed_t<decltype(c.size())>>;
444445
template<class T, ptrdiff_t N> constexpr ptrdiff_t ssize(const T (&array)[N]) noexcept;
446+
445447
template<class C> [[nodiscard]] constexpr auto empty(const C& c) -> decltype(c.empty());
446448
template<class T, size_t N> [[nodiscard]] constexpr bool empty(const T (&array)[N]) noexcept;
447449
template<class E> [[nodiscard]] constexpr bool empty(initializer_list<E> il) noexcept;
450+
448451
template<class C> constexpr auto data(C& c) -> decltype(c.data());
449452
template<class C> constexpr auto data(const C& c) -> decltype(c.data());
450453
template<class T, size_t N> constexpr T* data(T (&array)[N]) noexcept;
@@ -2423,8 +2426,7 @@
24232426
\begin{codeblock}
24242427
template<class In, class Out>
24252428
concept @\deflibconcept{indirectly_movable}@ =
2426-
@\libconcept{indirectly_readable}@<In> &&
2427-
@\libconcept{indirectly_writable}@<Out, iter_rvalue_reference_t<In>>;
2429+
@\libconcept{indirectly_readable}@<In> && @\libconcept{indirectly_writable}@<Out, iter_rvalue_reference_t<In>>;
24282430
\end{codeblock}
24292431

24302432
\pnum
@@ -2542,9 +2544,7 @@
25422544
\begin{codeblock}
25432545
template<class I>
25442546
concept @\deflibconcept{permutable}@ =
2545-
@\libconcept{forward_iterator}@<I> &&
2546-
@\libconcept{indirectly_movable_storable}@<I, I> &&
2547-
@\libconcept{indirectly_swappable}@<I, I>;
2547+
@\libconcept{forward_iterator}@<I> && @\libconcept{indirectly_movable_storable}@<I, I> && @\libconcept{indirectly_swappable}@<I, I>;
25482548
\end{codeblock}
25492549

25502550
\rSec3[alg.req.mergeable]{Concept \cname{mergeable}}
@@ -2910,6 +2910,8 @@
29102910
the ending and starting positions of \tcode{i}.
29112911
\end{itemdescr}
29122912

2913+
\newpage
2914+
29132915
\rSec3[range.iter.op.distance]{\tcode{ranges::distance}}
29142916
\indexlibraryglobal{distance}%
29152917
\begin{itemdecl}
@@ -3477,6 +3479,8 @@
34773479
\tcode{x.base() < y.base()}.
34783480
\end{itemdescr}
34793481

3482+
\newpage
3483+
34803484
\indexlibrarymember{operator<=}{reverse_iterator}%
34813485
\begin{itemdecl}
34823486
template<class Iterator1, class Iterator2>
@@ -4690,8 +4694,10 @@
46904694
void fun(ForwardIterator begin, ForwardIterator end);
46914695

46924696
list<int> s;
4697+
46934698
// populate the list \tcode{s}
46944699
using CI = common_iterator<counted_iterator<list<int>::iterator>, default_sentinel_t>;
4700+
46954701
// call \tcode{fun} on a range of 10 ints
46964702
fun(CI(counted_iterator(s.begin(), 10)), CI(default_sentinel));
46974703
\end{codeblock}
@@ -5108,6 +5114,8 @@
51085114
a range of $N$ elements starting at a given position
51095115
without needing to know the end position a priori.
51105116

5117+
\newpage
5118+
51115119
\pnum
51125120
\begin{example}
51135121
\begin{codeblock}

0 commit comments

Comments
 (0)