Skip to content

Commit 7c82891

Browse files
burblebeetkoeppe
authored andcommitted
LWG4235 cache_latest_view and to_input_view miss reserve_hint
1 parent ac8c439 commit 7c82891

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
@@ -17371,6 +17371,9 @@
1737117371

1737217372
constexpr auto size() requires @\libconcept{sized_range}@<V>;
1737317373
constexpr auto size() const requires @\libconcept{sized_range}@<const V>;
17374+
17375+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17376+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
1737417377
};
1737517378

1737617379
template<class R>
@@ -17423,6 +17426,18 @@
1742317426
Equivalent to: \tcode{return ranges::size(\exposid{base_});}
1742417427
\end{itemdescr}
1742517428

17429+
\indexlibrarymember{reserve_hint}{cache_latest_view}%
17430+
\begin{itemdecl}
17431+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17432+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
17433+
\end{itemdecl}
17434+
17435+
\begin{itemdescr}
17436+
\pnum
17437+
\effects
17438+
Equivalent to: \tcode{return ranges::reserve_hint(\exposid{base_});}
17439+
\end{itemdescr}
17440+
1742617441
\rSec3[range.cache.latest.iterator]{Class \tcode{cache_latest_view::\exposid{iterator}}}
1742717442

1742817443
\indexlibraryglobal{cache_latest_view::\exposid{iiterator}}%
@@ -17721,6 +17736,9 @@
1772117736

1772217737
constexpr auto size() requires @\libconcept{sized_range}@<V>;
1772317738
constexpr auto size() const requires @\libconcept{sized_range}@<const V>;
17739+
17740+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17741+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
1772417742
};
1772517743

1772617744
template<class R>
@@ -17785,6 +17803,18 @@
1778517803
Equivalent to: \tcode{return ranges::size(\exposid{base_});}
1778617804
\end{itemdescr}
1778717805

17806+
\indexlibrarymember{reserve_hint}{to_input_view}%
17807+
\begin{itemdecl}
17808+
constexpr auto reserve_hint() requires @\libconcept{approximately_sized_range}@<V>;
17809+
constexpr auto reserve_hint() const requires @\libconcept{approximately_sized_range}@<const V>;
17810+
\end{itemdecl}
17811+
17812+
\begin{itemdescr}
17813+
\pnum
17814+
\effects
17815+
Equivalent to: \tcode{return ranges::reserve_hint(\exposid{base_});}
17816+
\end{itemdescr}
17817+
1778817818
\rSec3[range.to.input.iterator]{Class template \tcode{to_input_view::\exposid{iterator}}}
1778917819

1779017820
\indexlibraryglobal{to_input_view::\exposid{iterator}}%

0 commit comments

Comments
 (0)