Skip to content

Commit

Permalink
LWG4001 iota_view should provide empty
Browse files Browse the repository at this point in the history
  • Loading branch information
burblebee committed Nov 14, 2023
1 parent 0481462 commit 7f8629f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2685,6 +2685,7 @@
constexpr auto end() const;
constexpr @\exposid{iterator}@ end() const requires @\libconcept{same_as}@<W, Bound>;

constexpr bool empty() const;
constexpr auto size() const requires @\seebelow@;
};

Expand Down Expand Up @@ -2902,6 +2903,17 @@
Equivalent to: \tcode{return \exposid{iterator}\{\exposid{bound_}\};}
\end{itemdescr}

\indexlibrarymember{empty}{iota_view}%
\begin{itemdecl}
constexpr bool empty() const;
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
Equivalent to: \tcode{return \exposid{value_} == \exposid{bound_};}
\end{itemdescr}

\indexlibrarymember{size}{iota_view}%
\begin{itemdecl}
constexpr auto size() const requires @\seebelow@;
Expand Down

0 comments on commit 7f8629f

Please sign in to comment.