diff --git a/source/containers.tex b/source/containers.tex index b67726a611..f12c40f62b 100644 --- a/source/containers.tex +++ b/source/containers.tex @@ -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; @@ -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}% @@ -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}% @@ -10066,32 +10092,6 @@ \tcode{return *try_push_back(std::forward(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}