Skip to content

Commit

Permalink
[iterator.concept.readable] Add missing \expos for indirectly-readabl…
Browse files Browse the repository at this point in the history
…e-impl

Also adjust horizontal whitespace in related comments.
  • Loading branch information
hewillk authored and tkoeppe committed Aug 18, 2023
1 parent f55b875 commit a272b7c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions source/iterators.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@

\begin{codeblock}
template<class In>
concept @\defexposconcept{indirectly-readable-impl}@ =
concept @\defexposconcept{indirectly-readable-impl}@ = @\itcorr[-1]@ // \expos
requires(const In in) {
typename iter_value_t<In>;
typename iter_reference_t<In>;
Expand Down Expand Up @@ -1320,12 +1320,12 @@
template<class Out, class T>
concept @\deflibconcept{indirectly_writable}@ =
requires(Out&& o, T&& t) {
*o = std::forward<T>(t); // not required to be equality-preserving
*std::forward<Out>(o) = std::forward<T>(t); // not required to be equality-preserving
*o = std::forward<T>(t); // not required to be equality-preserving
*std::forward<Out>(o) = std::forward<T>(t); // not required to be equality-preserving
const_cast<const iter_reference_t<Out>&&>(*o) =
std::forward<T>(t); // not required to be equality-preserving
std::forward<T>(t); // not required to be equality-preserving
const_cast<const iter_reference_t<Out>&&>(*std::forward<Out>(o)) =
std::forward<T>(t); // not required to be equality-preserving
std::forward<T>(t); // not required to be equality-preserving
};
\end{codeblock}

Expand Down Expand Up @@ -1372,19 +1372,19 @@

\begin{codeblock}
template<class T>
constexpr bool @\exposid{is-integer-like}@ = @\seebelow@; @\itcorr[-2]@ // \expos
constexpr bool @\exposid{is-integer-like}@ = @\seebelow@; @\itcorr[-2]@ // \expos

template<class T>
constexpr bool @\exposid{is-signed-integer-like}@ = @\seebelow@; @\itcorr[-2]@ // \expos
constexpr bool @\exposid{is-signed-integer-like}@ = @\seebelow@; @\itcorr[-2]@ // \expos

template<class I>
concept @\deflibconcept{weakly_incrementable}@ =
@\libconcept{movable}@<I> &&
requires(I i) {
typename iter_difference_t<I>;
requires @\exposid{is-signed-integer-like}@<iter_difference_t<I>>;
{ ++i } -> @\libconcept{same_as}@<I&>; // not required to be equality-preserving
i++; // not required to be equality-preserving
{ ++i } -> @\libconcept{same_as}@<I&>; // not required to be equality-preserving
i++; // not required to be equality-preserving
};
\end{codeblock}

Expand Down

0 comments on commit a272b7c

Please sign in to comment.