Skip to content

[array] Dissolve single-item subclauses. #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 21 additions & 26 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3238,27 +3238,7 @@
\requires \tcode{(is_same_v<T, U> \&\& ...)} is \tcode{true}. Otherwise the program is ill-formed.
\end{itemdescr}

\rSec3[array.special]{\tcode{array} specialized algorithms}

\indexlibrarymember{array}{swap}%
\begin{itemdecl}
template <class T, size_t N>
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
\end{itemdecl}

\begin{itemdescr}
\pnum\remarks
This function shall not participate in overload resolution
unless \tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.

\pnum\effects
As if by \tcode{x.swap(y)}.

\pnum
\complexity Linear in \tcode{N}.
\end{itemdescr}

\rSec3[array.size]{\tcode{array::size}}
\rSec3[array.members]{\tcode{array} member functions}

\indexlibrarymember{array}{size}%
\begin{itemdecl}
Expand All @@ -3269,7 +3249,6 @@
\pnum\returns \tcode{N}.
\end{itemdescr}

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

\rSec3[array.fill]{\tcode{array::fill}}

\indexlibrarymember{array}{fill}%
\begin{itemdecl}
void fill(const T& u);
Expand All @@ -3294,8 +3271,6 @@
\effects As if by \tcode{fill_n(begin(), N, u)}.
\end{itemdescr}

\rSec3[array.swap]{\tcode{array::swap}}

\indexlibrarymember{array}{swap}%
\begin{itemdecl}
void swap(array& y) noexcept(is_nothrow_swappable_v<T>);
Expand All @@ -3313,6 +3288,26 @@
\end{note}
\end{itemdescr}

\rSec3[array.special]{\tcode{array} specialized algorithms}

\indexlibrarymember{array}{swap}%
\begin{itemdecl}
template <class T, size_t N>
void swap(array<T, N>& x, array<T, N>& y) noexcept(noexcept(x.swap(y)));
\end{itemdecl}

\begin{itemdescr}
\pnum\remarks
This function shall not participate in overload resolution
unless \tcode{N == 0} or \tcode{is_swappable_v<T>} is \tcode{true}.

\pnum\effects
As if by \tcode{x.swap(y)}.

\pnum
\complexity Linear in \tcode{N}.
\end{itemdescr}

\rSec3[array.zero]{Zero sized arrays}

\indextext{\idxcode{array}!zero sized}%
Expand Down
6 changes: 6 additions & 0 deletions source/xrefdelta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,11 @@
\secref{fs.path.generic},
\secref{fs.race.behavior}}

% Single-item array subclauses were dissolved.
\movedxref{array.size}{array.members}
\movedxref{array.data}{array.members}
\movedxref{array.fill}{array.members}
\movedxref{array.swap}{array.members}

% Deprecated features.
%\deprxref{old.label} (if moved to depr.old.label, otherwise use \movedxref)