Skip to content

Commit

Permalink
[range.take.while.sentinel] Add missing template parameter (#3604)
Browse files Browse the repository at this point in the history
Also add a cross-reference for the declaration of sentinel in [range.take.while].
  • Loading branch information
JohelEGP authored and jensmaurer committed Jan 5, 2020
1 parent 830c3fe commit 45abe67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4333,6 +4333,7 @@
requires input_range<V> && is_object_v<Pred> &&
indirect_unary_predicate<const Pred, iterator_t<V>>
class take_while_view : public view_interface<take_while_view<V, Pred>> {
// \ref{range.take.while.sentinel}, class template \tcode{take_while_view::\exposid{sentinel}}
template<bool> class @\exposid{sentinel}@; // \expos

V @\exposid{base_}@; // \expos
Expand Down Expand Up @@ -4393,9 +4394,9 @@
\indexlibraryglobal{take_while_view::sentinel}%
\begin{codeblock}
namespace std::ranges {
template<class V>
template<class V, class Pred>
template<bool Const>
class take_while_view<V>::@\exposid{sentinel}@ { // \expos
class take_while_view<V, Pred>::@\exposid{sentinel}@ { // \expos
using @\exposid{base-t}@ = conditional_t<Const, const V, V>; // \expos

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

0 comments on commit 45abe67

Please sign in to comment.