Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions source/algorithms.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13530,7 +13530,7 @@
make use of the following exposition-only function templates:
\begin{codeblock}
template<class T>
constexpr void* @\placeholdernc{voidify}@(T& obj) noexcept {
constexpr void* @\exposid{voidify}@(T& obj) noexcept {
return addressof(obj);
}

Expand Down Expand Up @@ -13726,7 +13726,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type;
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type;
\end{codeblock}
\end{itemdescr}

Expand All @@ -13748,7 +13748,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>;
::new (@\exposid{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>;
return first;
\end{codeblock}
\end{itemdescr}
Expand All @@ -13766,7 +13766,7 @@
Equivalent to:
\begin{codeblock}
for (; n > 0; (void)++first, --n)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type;
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type;
return first;
\end{codeblock}
\end{itemdescr}
Expand Down Expand Up @@ -13805,7 +13805,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type();
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type();
\end{codeblock}
\end{itemdescr}

Expand All @@ -13827,7 +13827,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>();
::new (@\exposid{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>();
return first;
\end{codeblock}
\end{itemdescr}
Expand All @@ -13845,7 +13845,7 @@
Equivalent to:
\begin{codeblock}
for (; n > 0; (void)++first, --n)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type();
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type();
return first;
\end{codeblock}
\end{itemdescr}
Expand Down Expand Up @@ -13888,7 +13888,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++result, (void)++first)
::new (@\placeholdernc{voidify}@(*result)) iterator_traits<NoThrowForwardIterator>::value_type(*first);
::new (@\exposid{voidify}@(*result)) iterator_traits<NoThrowForwardIterator>::value_type(*first);
\end{codeblock}

\pnum
Expand Down Expand Up @@ -13921,7 +13921,7 @@
Equivalent to:
\begin{codeblock}
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst)
::new (@\placeholdernc{voidify}@(*ofirst)) remove_reference_t<iter_reference_t<O>>(*ifirst);
::new (@\exposid{voidify}@(*ofirst)) remove_reference_t<iter_reference_t<O>>(*ifirst);
return {std::move(ifirst), ofirst};
\end{codeblock}
\end{itemdescr}
Expand All @@ -13943,7 +13943,7 @@
Equivalent to:
\begin{codeblock}
for (; n > 0; ++result, (void)++first, --n)
::new (@\placeholdernc{voidify}@(*result)) iterator_traits<NoThrowForwardIterator>::value_type(*first);
::new (@\exposid{voidify}@(*result)) iterator_traits<NoThrowForwardIterator>::value_type(*first);
\end{codeblock}

\pnum
Expand Down Expand Up @@ -13996,7 +13996,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; (void)++result, ++first)
::new (@\placeholdernc{voidify}@(*result))
::new (@\exposid{voidify}@(*result))
iterator_traits<NoThrowForwardIterator>::value_type(@\exposid{deref-move}@(first));
return result;
\end{codeblock}
Expand Down Expand Up @@ -14027,7 +14027,7 @@
Equivalent to:
\begin{codeblock}
for (; ifirst != ilast && ofirst != olast; ++ofirst, (void)++ifirst)
::new (@\placeholder{voidify}@(*ofirst))
::new (@\exposid{voidify}@(*ofirst))
remove_reference_t<iter_reference_t<O>>(ranges::iter_move(ifirst));
return {std::move(ifirst), ofirst};
\end{codeblock}
Expand Down Expand Up @@ -14056,7 +14056,7 @@
Equivalent to:
\begin{codeblock}
for (; n > 0; ++result, (void)++first, --n)
::new (@\placeholdernc{voidify}@(*result))
::new (@\exposid{voidify}@(*result))
iterator_traits<NoThrowForwardIterator>::value_type(@\exposid{deref-move}@(first));
return {first, result};
\end{codeblock}
Expand Down Expand Up @@ -14109,7 +14109,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type(x);
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type(x);
\end{codeblock}
\end{itemdescr}

Expand All @@ -14131,7 +14131,7 @@
Equivalent to:
\begin{codeblock}
for (; first != last; ++first)
::new (@\placeholdernc{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>(x);
::new (@\exposid{voidify}@(*first)) remove_reference_t<iter_reference_t<I>>(x);
return first;
\end{codeblock}
\end{itemdescr}
Expand All @@ -14149,7 +14149,7 @@
Equivalent to:
\begin{codeblock}
for (; n--; ++first)
::new (@\placeholdernc{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type(x);
::new (@\exposid{voidify}@(*first)) iterator_traits<NoThrowForwardIterator>::value_type(x);
return first;
\end{codeblock}
\end{itemdescr}
Expand Down Expand Up @@ -14201,9 +14201,9 @@
Equivalent to:
\begin{codeblock}
if constexpr (is_array_v<T>)
return ::new (@\placeholdernc{voidify}@(*location)) T[1]();
return ::new (@\exposid{voidify}@(*location)) T[1]();
else
return ::new (@\placeholdernc{voidify}@(*location)) T(std::forward<Args>(args)...);
return ::new (@\exposid{voidify}@(*location)) T(std::forward<Args>(args)...);
\end{codeblock}
\end{itemdescr}

Expand Down