Skip to content

Commit

Permalink
[inplace.vector] Move reserve+shrink_to_fit from #modifiers to #capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Quuxplusone committed Oct 18, 2024
1 parent 49113a4 commit cb69a94
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9638,7 +9638,7 @@
constexpr const_reverse_iterator crbegin() const noexcept;
constexpr const_reverse_iterator crend() const noexcept;

// \ref{inplace.vector.capacity}, size/capacity
// \ref{inplace.vector.capacity}, capacity
constexpr bool empty() const noexcept;
constexpr size_type size() const noexcept;
static constexpr size_type max_size() noexcept;
Expand Down Expand Up @@ -9788,7 +9788,7 @@
Linear in \tcode{ranges::distance(rg)}.
\end{itemdescr}

\rSec3[inplace.vector.capacity]{Size and capacity}
\rSec3[inplace.vector.capacity]{Capacity}

\indexlibrarymember{capacity}{inplace_vector}%
\indexlibrarymember{max_size}{inplace_vector}%
Expand Down Expand Up @@ -9849,6 +9849,32 @@
If an exception is thrown, there are no effects on \tcode{*this}.
\end{itemdescr}

\indexlibrarymember{reserve}{inplace_vector}%
\begin{itemdecl}
static constexpr void reserve(size_type n);
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
None.

\pnum
\throws
\tcode{bad_alloc} if \tcode{n > capacity()} is \tcode{true}.
\end{itemdescr}

\indexlibrarymember{shrink_to_fit}{inplace_vector}%
\begin{itemdecl}
static constexpr void shrink_to_fit() noexcept;
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
None.
\end{itemdescr}

\rSec3[inplace.vector.data]{Data}

\indexlibrarymember{data}{inplace_vector}%
Expand Down Expand Up @@ -10066,32 +10092,6 @@
\tcode{return *try_push_back(std::forward<decltype(x)>(x));}
\end{itemdescr}

\indexlibrarymember{reserve}{inplace_vector}%
\begin{itemdecl}
static constexpr void reserve(size_type n);
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
None.

\pnum
\throws
\tcode{bad_alloc} if \tcode{n > capacity()} is \tcode{true}.
\end{itemdescr}

\indexlibrarymember{shrink_to_fit}{inplace_vector}%
\begin{itemdecl}
static constexpr void shrink_to_fit() noexcept;
\end{itemdecl}

\begin{itemdescr}
\pnum
\effects
None.
\end{itemdescr}

\indexlibrarymember{erase}{inplace_vector}%
\indexlibrarymember{pop_back}{inplace_vector}%
\begin{itemdecl}
Expand Down

0 comments on commit cb69a94

Please sign in to comment.