Skip to content

Commit 45abe67

Browse files
JohelEGPjensmaurer
authored andcommitted
[range.take.while.sentinel] Add missing template parameter (#3604)
Also add a cross-reference for the declaration of sentinel in [range.take.while].
1 parent 830c3fe commit 45abe67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/ranges.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4333,6 +4333,7 @@
43334333
requires input_range<V> && is_object_v<Pred> &&
43344334
indirect_unary_predicate<const Pred, iterator_t<V>>
43354335
class take_while_view : public view_interface<take_while_view<V, Pred>> {
4336+
// \ref{range.take.while.sentinel}, class template \tcode{take_while_view::\exposid{sentinel}}
43364337
template<bool> class @\exposid{sentinel}@; // \expos
43374338

43384339
V @\exposid{base_}@; // \expos
@@ -4393,9 +4394,9 @@
43934394
\indexlibraryglobal{take_while_view::sentinel}%
43944395
\begin{codeblock}
43954396
namespace std::ranges {
4396-
template<class V>
4397+
template<class V, class Pred>
43974398
template<bool Const>
4398-
class take_while_view<V>::@\exposid{sentinel}@ { // \expos
4399+
class take_while_view<V, Pred>::@\exposid{sentinel}@ { // \expos
43994400
using @\exposid{base-t}@ = conditional_t<Const, const V, V>; // \expos
44004401

44014402
sentinel_t<@\exposid{base-t}@> @\exposid{end_}@ = sentinel_t<@\exposid{base-t}@>(); // \expos

0 commit comments

Comments
 (0)