Skip to content

Commit a3fdcf1

Browse files
burblebeetkoeppe
authored andcommitted
LWG4001 iota_view should provide empty
1 parent 9620e6d commit a3fdcf1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/ranges.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2685,6 +2685,7 @@
26852685
constexpr auto end() const;
26862686
constexpr @\exposid{iterator}@ end() const requires @\libconcept{same_as}@<W, Bound>;
26872687

2688+
constexpr bool empty() const;
26882689
constexpr auto size() const requires @\seebelow@;
26892690
};
26902691

@@ -2902,6 +2903,17 @@
29022903
Equivalent to: \tcode{return \exposid{iterator}\{\exposid{bound_}\};}
29032904
\end{itemdescr}
29042905

2906+
\indexlibrarymember{empty}{iota_view}%
2907+
\begin{itemdecl}
2908+
constexpr bool empty() const;
2909+
\end{itemdecl}
2910+
2911+
\begin{itemdescr}
2912+
\pnum
2913+
\effects
2914+
Equivalent to: \tcode{return \exposid{value_} == \exposid{bound_};}
2915+
\end{itemdescr}
2916+
29052917
\indexlibrarymember{size}{iota_view}%
29062918
\begin{itemdecl}
29072919
constexpr auto size() const requires @\seebelow@;

0 commit comments

Comments
 (0)