Skip to content

Commit de326ef

Browse files
committed
LWG4235 cache_latest_view and to_input_view miss reserve_hint
1 parent be45d8a commit de326ef

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

source/ranges.tex

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17311,6 +17311,9 @@
1731117311

1731217312
constexpr auto size() requires @\libconcept{sized_range}@<V>;
1731317313
constexpr auto size() const requires @\libconcept{sized_range}@<const V>;
17314+
17315+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17316+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
1731417317
};
1731517318

1731617319
template<class R>
@@ -17363,6 +17366,18 @@
1736317366
Equivalent to: \tcode{return ranges::size(\exposid{base_});}
1736417367
\end{itemdescr}
1736517368

17369+
\indexlibrarymember{reserve_hint}{cache_latest_view}%
17370+
\begin{itemdecl}
17371+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17372+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
17373+
\end{itemdecl}
17374+
17375+
\begin{itemdescr}
17376+
\pnum
17377+
\effects
17378+
Equivalent to: \tcode{return ranges::reserve_hint(\exposid{base_});}
17379+
\end{itemdescr}
17380+
1736617381
\rSec3[range.cache.latest.iterator]{Class \tcode{cache_latest_view::\exposid{iterator}}}
1736717382

1736817383
\indexlibraryglobal{cache_latest_view::\exposid{iiterator}}%
@@ -17660,6 +17675,9 @@
1766017675

1766117676
constexpr auto size() requires @\libconcept{sized_range}@<V>;
1766217677
constexpr auto size() const requires @\libconcept{sized_range}@<const V>;
17678+
17679+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17680+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
1766317681
};
1766417682

1766517683
template<class R>
@@ -17719,6 +17737,18 @@
1771917737
Equivalent to: \tcode{return ranges::size(\exposid{base_});}
1772017738
\end{itemdescr}
1772117739

17740+
\indexlibrarymember{reserve_hint}{to_input_view}%
17741+
\begin{itemdecl}
17742+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17743+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
17744+
\end{itemdecl}
17745+
17746+
\begin{itemdescr}
17747+
\pnum
17748+
\effects
17749+
Equivalent to: \tcode{return ranges::reserve_hint(\exposid{base_});}
17750+
\end{itemdescr}
17751+
1772217752
\rSec3[range.to.input.iterator]{Class template \tcode{to_input_view::\exposid{iterator}}}
1772317753

1772417754
\begin{codeblock}

0 commit comments

Comments
 (0)