|
9638 | 9638 | constexpr const_reverse_iterator crbegin() const noexcept; |
9639 | 9639 | constexpr const_reverse_iterator crend() const noexcept; |
9640 | 9640 |
|
9641 | | - // \ref{inplace.vector.capacity}, size/capacity |
| 9641 | + // \ref{inplace.vector.capacity}, capacity |
9642 | 9642 | constexpr bool empty() const noexcept; |
9643 | 9643 | constexpr size_type size() const noexcept; |
9644 | 9644 | static constexpr size_type max_size() noexcept; |
|
9788 | 9788 | Linear in \tcode{ranges::distance(rg)}. |
9789 | 9789 | \end{itemdescr} |
9790 | 9790 |
|
9791 | | -\rSec3[inplace.vector.capacity]{Size and capacity} |
| 9791 | +\rSec3[inplace.vector.capacity]{Capacity} |
9792 | 9792 |
|
9793 | 9793 | \indexlibrarymember{capacity}{inplace_vector}% |
9794 | 9794 | \indexlibrarymember{max_size}{inplace_vector}% |
|
9849 | 9849 | If an exception is thrown, there are no effects on \tcode{*this}. |
9850 | 9850 | \end{itemdescr} |
9851 | 9851 |
|
| 9852 | +\indexlibrarymember{reserve}{inplace_vector}% |
| 9853 | +\begin{itemdecl} |
| 9854 | +static constexpr void reserve(size_type n); |
| 9855 | +\end{itemdecl} |
| 9856 | + |
| 9857 | +\begin{itemdescr} |
| 9858 | +\pnum |
| 9859 | +\effects |
| 9860 | +None. |
| 9861 | + |
| 9862 | +\pnum |
| 9863 | +\throws |
| 9864 | +\tcode{bad_alloc} if \tcode{n > capacity()} is \tcode{true}. |
| 9865 | +\end{itemdescr} |
| 9866 | + |
| 9867 | +\indexlibrarymember{shrink_to_fit}{inplace_vector}% |
| 9868 | +\begin{itemdecl} |
| 9869 | +static constexpr void shrink_to_fit() noexcept; |
| 9870 | +\end{itemdecl} |
| 9871 | + |
| 9872 | +\begin{itemdescr} |
| 9873 | +\pnum |
| 9874 | +\effects |
| 9875 | +None. |
| 9876 | +\end{itemdescr} |
| 9877 | + |
9852 | 9878 | \rSec3[inplace.vector.data]{Data} |
9853 | 9879 |
|
9854 | 9880 | \indexlibrarymember{data}{inplace_vector}% |
|
10066 | 10092 | \tcode{return *try_push_back(std::forward<decltype(x)>(x));} |
10067 | 10093 | \end{itemdescr} |
10068 | 10094 |
|
10069 | | -\indexlibrarymember{reserve}{inplace_vector}% |
10070 | | -\begin{itemdecl} |
10071 | | -static constexpr void reserve(size_type n); |
10072 | | -\end{itemdecl} |
10073 | | - |
10074 | | -\begin{itemdescr} |
10075 | | -\pnum |
10076 | | -\effects |
10077 | | -None. |
10078 | | - |
10079 | | -\pnum |
10080 | | -\throws |
10081 | | -\tcode{bad_alloc} if \tcode{n > capacity()} is \tcode{true}. |
10082 | | -\end{itemdescr} |
10083 | | - |
10084 | | -\indexlibrarymember{shrink_to_fit}{inplace_vector}% |
10085 | | -\begin{itemdecl} |
10086 | | -static constexpr void shrink_to_fit() noexcept; |
10087 | | -\end{itemdecl} |
10088 | | - |
10089 | | -\begin{itemdescr} |
10090 | | -\pnum |
10091 | | -\effects |
10092 | | -None. |
10093 | | -\end{itemdescr} |
10094 | | - |
10095 | 10095 | \indexlibrarymember{erase}{inplace_vector}% |
10096 | 10096 | \indexlibrarymember{pop_back}{inplace_vector}% |
10097 | 10097 | \begin{itemdecl} |
|
0 commit comments