Skip to content

Commit 5fd55fb

Browse files
jensmaurertkoeppe
authored andcommitted
P2613R1 Add the missing empty to mdspan
1 parent 467962e commit 5fd55fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/containers.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16997,6 +16997,7 @@
1699716997
constexpr reference operator[](const array<OtherIndexType, rank()>& indices) const;
1699816998

1699916999
constexpr size_type size() const noexcept;
17000+
[[nodiscard]] constexpr bool empty() const noexcept;
1700017001

1700117002
friend constexpr void swap(mdspan& x, mdspan& y) noexcept;
1700217003

@@ -17460,6 +17461,19 @@
1746017461
\tcode{extents().\exposid{fwd-prod-of-extents}(rank())}.
1746117462
\end{itemdescr}
1746217463

17464+
\indexlibrarymember{empty}{mdspan}%
17465+
\begin{itemdecl}
17466+
[[nodiscard]] constexpr bool empty() const noexcept;
17467+
\end{itemdecl}
17468+
17469+
\begin{itemdescr}
17470+
\pnum
17471+
\returns
17472+
\tcode{true}
17473+
if the size of the multidimensional index space \tcode{extents()} is 0,
17474+
otherwise \tcode{false}.
17475+
\end{itemdescr}
17476+
1746317477
\indexlibrarymember{swap}{mdspan}%
1746417478
\begin{itemdecl}
1746517479
friend constexpr void swap(mdspan& x, mdspan& y) noexcept;

0 commit comments

Comments
 (0)