|
10956 | 10956 | constexpr pointer try_emplace_back(Args&&... args); |
10957 | 10957 | constexpr pointer try_push_back(const T& x); |
10958 | 10958 | constexpr pointer try_push_back(T&& x); |
10959 | | - template<@\exposconcept{container-compatible-range}@<T> R> |
10960 | | - constexpr ranges::borrowed_iterator_t<R> try_append_range(R&& rg); |
10961 | 10959 |
|
10962 | 10960 | template<class... Args> |
10963 | 10961 | constexpr reference unchecked_emplace_back(Args&&... args); |
|
11306 | 11304 | If an exception is thrown, there are no effects on \tcode{*this}. |
11307 | 11305 | \end{itemdescr} |
11308 | 11306 |
|
11309 | | -\indexlibrarymember{try_append_range}{inplace_vector}% |
11310 | | -\begin{itemdecl} |
11311 | | -template<@\exposconcept{container-compatible-range}@<T> R> |
11312 | | - constexpr ranges::borrowed_iterator_t<R> try_append_range(R&& rg); |
11313 | | -\end{itemdecl} |
11314 | | - |
11315 | | -\begin{itemdescr} |
11316 | | -\pnum |
11317 | | -\expects |
11318 | | -\tcode{value_type} is \oldconcept{EmplaceConstructible} |
11319 | | -into \tcode{inplace_vector} from\\\tcode{*ranges::begin(rg)}. |
11320 | | - |
11321 | | -\pnum |
11322 | | -\effects |
11323 | | -Appends copies of initial elements in \tcode{rg} before \tcode{end()}, |
11324 | | -until all elements are inserted or \tcode{size() == capacity()} is \tcode{true}. |
11325 | | -Each iterator in the range \tcode{rg} is dereferenced at most once. |
11326 | | - |
11327 | | -\pnum |
11328 | | -\returns |
11329 | | -The first iterator in the range |
11330 | | -\countedrange{ranges::begin(rg)}{n} |
11331 | | -that was not inserted into \tcode{*this}, |
11332 | | -where \tcode{n} is the number of elements in \tcode{rg}. |
11333 | | - |
11334 | | -\pnum |
11335 | | -\complexity |
11336 | | -Linear in the number of elements inserted. |
11337 | | - |
11338 | | -\pnum |
11339 | | -\remarks |
11340 | | -Let $n$ be the value of \tcode{size()} prior to this call. |
11341 | | -If an exception is thrown after the insertion of $k$ elements, then |
11342 | | -\tcode{size()} equals $n + k$, |
11343 | | -elements in the range \tcode{begin() + \range{0}{$n$}} are not modified, and |
11344 | | -elements in the range \tcode{begin() + \range{$n$}{$n + k$}} correspond to |
11345 | | -the inserted elements. |
11346 | | -\end{itemdescr} |
11347 | | - |
11348 | 11307 | \indexlibrarymember{unchecked_emplace_back}{inplace_vector}% |
11349 | 11308 | \begin{itemdecl} |
11350 | 11309 | template<class... Args> |
|
0 commit comments