Skip to content

Commit

Permalink
fixup: add indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer committed Dec 6, 2024
1 parent b9109da commit 6e34194
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16769,7 +16769,7 @@
namespace std::ranges {
template<@\libconcept{input_range}@ V>
requires @\libconcept{view}@<V>
class cache_latest_view : public view_interface<cache_latest_view<V>> {
class @\libglobal{cache_latest_view}@ : public view_interface<cache_latest_view<V>> {
V @\exposid{base_}@ = V(); // \expos
using @\exposid{cache_t}@ = conditional_t<is_reference_v<range_reference_t<V>>, // \expos
add_pointer_t<range_reference_t<V>>,
Expand Down Expand Up @@ -16799,6 +16799,7 @@
}
\end{codeblock}

\indexlibraryctor{cache_latest_view}%
\begin{itemdecl}
constexpr explicit cache_latest_view(V base);
\end{itemdecl}
Expand All @@ -16809,6 +16810,7 @@
Initializes \exposid{base_} with \tcode{std::move(base)}.
\end{itemdescr}

\indexlibrarymember{begin}{cache_latest_view}%
\begin{itemdecl}
constexpr auto begin();
\end{itemdecl}
Expand All @@ -16819,6 +16821,7 @@
Equivalent to: \tcode{return \exposid{iterator}(*this);}
\end{itemdescr}

\indexlibrarymember{end}{cache_latest_view}%
\begin{itemdecl}
constexpr auto end();
\end{itemdecl}
Expand Down

0 comments on commit 6e34194

Please sign in to comment.