Skip to content

Commit 7c6f936

Browse files
jensmaurerzygoloid
authored andcommitted
[array] Dissolve single-item subclauses.
Partially addresses #1242.
1 parent 04c4e83 commit 7c6f936

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

Diff for: source/containers.tex

+21-26
Original file line numberDiff line numberDiff line change
@@ -3238,27 +3238,7 @@
32383238
\requires \tcode{(is_same_v<T, U> \&\& ...)} is \tcode{true}. Otherwise the program is ill-formed.
32393239
\end{itemdescr}
32403240

3241-
\rSec3[array.special]{\tcode{array} specialized algorithms}
3242-
3243-
\indexlibrarymember{array}{swap}%
3244-
\begin{itemdecl}
3245-
template <class T, size_t N>
3246-
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
3247-
\end{itemdecl}
3248-
3249-
\begin{itemdescr}
3250-
\pnum\remarks
3251-
This function shall not participate in overload resolution
3252-
unless \tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.
3253-
3254-
\pnum\effects
3255-
As if by \tcode{x.swap(y)}.
3256-
3257-
\pnum
3258-
\complexity Linear in \tcode{N}.
3259-
\end{itemdescr}
3260-
3261-
\rSec3[array.size]{\tcode{array::size}}
3241+
\rSec3[array.members]{\tcode{array} member functions}
32623242

32633243
\indexlibrarymember{array}{size}%
32643244
\begin{itemdecl}
@@ -3269,7 +3249,6 @@
32693249
\pnum\returns \tcode{N}.
32703250
\end{itemdescr}
32713251

3272-
\rSec3[array.data]{\tcode{array::data}}
32733252
\indexlibrarymember{array}{data}%
32743253
\begin{itemdecl}
32753254
constexpr T* data() noexcept;
@@ -3282,8 +3261,6 @@
32823261
and \range{data()}{data() + size()} is a valid range.
32833262
\end{itemdescr}
32843263

3285-
\rSec3[array.fill]{\tcode{array::fill}}
3286-
32873264
\indexlibrarymember{array}{fill}%
32883265
\begin{itemdecl}
32893266
void fill(const T& u);
@@ -3294,8 +3271,6 @@
32943271
\effects As if by \tcode{fill_n(begin(), N, u)}.
32953272
\end{itemdescr}
32963273

3297-
\rSec3[array.swap]{\tcode{array::swap}}
3298-
32993274
\indexlibrarymember{array}{swap}%
33003275
\begin{itemdecl}
33013276
void swap(array& y) noexcept(is_nothrow_swappable_v<T>);
@@ -3313,6 +3288,26 @@
33133288
\end{note}
33143289
\end{itemdescr}
33153290

3291+
\rSec3[array.special]{\tcode{array} specialized algorithms}
3292+
3293+
\indexlibrarymember{array}{swap}%
3294+
\begin{itemdecl}
3295+
template <class T, size_t N>
3296+
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
3297+
\end{itemdecl}
3298+
3299+
\begin{itemdescr}
3300+
\pnum\remarks
3301+
This function shall not participate in overload resolution
3302+
unless \tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.
3303+
3304+
\pnum\effects
3305+
As if by \tcode{x.swap(y)}.
3306+
3307+
\pnum
3308+
\complexity Linear in \tcode{N}.
3309+
\end{itemdescr}
3310+
33163311
\rSec3[array.zero]{Zero sized arrays}
33173312

33183313
\indextext{\idxcode{array}!zero sized}%

Diff for: source/xrefdelta.tex

+6
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@
3636
\secref{fs.path.generic},
3737
\secref{fs.race.behavior}}
3838

39+
% Single-item array subclauses were dissolved.
40+
\movedxref{array.size}{array.members}
41+
\movedxref{array.data}{array.members}
42+
\movedxref{array.fill}{array.members}
43+
\movedxref{array.swap}{array.members}
44+
3945
% Deprecated features.
4046
%\deprxref{old.label} (if moved to depr.old.label, otherwise use \movedxref)

0 commit comments

Comments
 (0)