File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 16997
16997
constexpr reference operator[](const array<OtherIndexType, rank()>& indices) const;
16998
16998
16999
16999
constexpr size_type size() const noexcept;
17000
+ [[nodiscard]] constexpr bool empty() const noexcept;
17000
17001
17001
17002
friend constexpr void swap(mdspan& x, mdspan& y) noexcept;
17002
17003
17460
17461
\tcode{extents().\exposid{fwd-prod-of-extents}(rank())}.
17461
17462
\end{itemdescr}
17462
17463
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
+
17463
17477
\indexlibrarymember{swap}{mdspan}%
17464
17478
\begin{itemdecl}
17465
17479
friend constexpr void swap(mdspan& x, mdspan& y) noexcept;
You can’t perform that action at this time.
0 commit comments