Skip to content

Commit a7b3313

Browse files
burblebeetkoeppe
authored andcommitted
LWG4236 chunk_view::outer-iterator::value_type should provide reserve_hint
1 parent 7c82891 commit a7b3313

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/ranges.tex

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14064,6 +14064,8 @@
1406414064

1406514065
constexpr auto size() const
1406614066
requires @\libconcept{sized_sentinel_for}@<sentinel_t<V>, iterator_t<V>>;
14067+
14068+
constexpr auto reserve_hint() const noexcept;
1406714069
};
1406814070
}
1406914071
\end{codeblock}
@@ -14117,6 +14119,20 @@
1411714119
\end{codeblock}
1411814120
\end{itemdescr}
1411914121

14122+
\indexlibrarymember{reserve_hint}{chunk_view::\exposid{outer-iterator}::value_type}%
14123+
\begin{itemdecl}
14124+
constexpr auto reserve_hint() const noexcept;
14125+
\end{itemdecl}
14126+
14127+
\begin{itemdescr}
14128+
\pnum
14129+
\effects
14130+
Equivalent to:
14131+
\begin{codeblock}
14132+
return @\exposid{to-unsigned-like}@(@\exposid{parent_}@->@\exposid{remainder_}@);
14133+
\end{codeblock}
14134+
\end{itemdescr}
14135+
1412014136
\rSec3[range.chunk.inner.iter]{Class \tcode{chunk_view::\exposid{inner-iterator}}}
1412114137

1412214138
\indexlibraryglobal{chunk_view::\exposid{inner-iterator}}%

0 commit comments

Comments
 (0)