|
7273 | 7273 | \indexlibrarymember{insert_after}{forward_list}%
|
7274 | 7274 | \begin{itemdecl}
|
7275 | 7275 | iterator insert_after(const_iterator position, const T& x);
|
| 7276 | +\end{itemdecl} |
| 7277 | + |
| 7278 | +\begin{itemdescr} |
| 7279 | +\pnum |
| 7280 | +\expects |
| 7281 | +\tcode{T} is \oldconcept{CopyInsertable} into \tcode{forward_list}. |
| 7282 | +\tcode{position} is \tcode{before_begin()} or is a dereferenceable |
| 7283 | +iterator in the range \range{begin()}{end()}. |
| 7284 | + |
| 7285 | +\pnum |
| 7286 | +\effects |
| 7287 | +Inserts a copy of \tcode{x} after \tcode{position}. |
| 7288 | + |
| 7289 | +\pnum |
| 7290 | +\returns |
| 7291 | +An iterator pointing to the copy of \tcode{x}. |
| 7292 | +\end{itemdescr} |
| 7293 | + |
| 7294 | +\indexlibrarymember{insert_after}{forward_list}% |
| 7295 | +\begin{itemdecl} |
7276 | 7296 | iterator insert_after(const_iterator position, T&& x);
|
7277 | 7297 | \end{itemdecl}
|
7278 | 7298 |
|
7279 | 7299 | \begin{itemdescr}
|
7280 | 7300 | \pnum
|
7281 | 7301 | \expects
|
| 7302 | +\tcode{T} is \oldconcept{MoveInsertable} into \tcode{forward_list}. |
7282 | 7303 | \tcode{position} is \tcode{before_begin()} or is a dereferenceable
|
7283 | 7304 | iterator in the range \range{begin()}{end()}.
|
7284 | 7305 |
|
|
7299 | 7320 | \begin{itemdescr}
|
7300 | 7321 | \pnum
|
7301 | 7322 | \expects
|
| 7323 | +\tcode{T} is \oldconcept{CopyInsertable} into \tcode{forward_list}. |
7302 | 7324 | \tcode{position} is \tcode{before_begin()} or is a dereferenceable
|
7303 | 7325 | iterator in the range \range{begin()}{end()}.
|
7304 | 7326 |
|
|
7308 | 7330 |
|
7309 | 7331 | \pnum
|
7310 | 7332 | \returns
|
7311 |
| -An iterator pointing to the last inserted copy of \tcode{x} or \tcode{position} if \tcode{n == 0}. |
| 7333 | +An iterator pointing to the last inserted copy of \tcode{x}, or |
| 7334 | +\tcode{position} if \tcode{n == 0} is \tcode{true}. |
7312 | 7335 | \end{itemdescr}
|
7313 | 7336 |
|
7314 | 7337 | \indexlibrarymember{insert_after}{forward_list}%
|
|
7320 | 7343 | \begin{itemdescr}
|
7321 | 7344 | \pnum
|
7322 | 7345 | \expects
|
| 7346 | +\tcode{T} is \oldconcept{EmplaceConstructible} into \tcode{forward_list} |
| 7347 | +from \tcode{*first}. |
7323 | 7348 | \tcode{position} is \tcode{before_begin()} or is a dereferenceable
|
7324 | 7349 | iterator in the range \range{begin()}{end()}.
|
7325 | 7350 | Neither \tcode{first} nor \tcode{last} are iterators in \tcode{*this}.
|
|
7330 | 7355 |
|
7331 | 7356 | \pnum
|
7332 | 7357 | \returns
|
7333 |
| -An iterator pointing to the last inserted element or \tcode{position} if \tcode{first == last}. |
| 7358 | +An iterator pointing to the last inserted element, or |
| 7359 | +\tcode{position} if \tcode{first == last} is \tcode{true}. |
7334 | 7360 | \end{itemdescr}
|
7335 | 7361 |
|
7336 | 7362 | \indexlibrarymember{insert_range_after}{forward_list}%
|
|
7342 | 7368 | \begin{itemdescr}
|
7343 | 7369 | \pnum
|
7344 | 7370 | \expects
|
7345 |
| -\tcode{position} is \tcode{before_begin()} or |
| 7371 | +\tcode{T} is \oldconcept{EmplaceConstructible} into \tcode{forward_list} |
| 7372 | +from \tcode{*ranges::begin(rg)}. |
| 7373 | +\tcode{posi\-tion} is \tcode{before_begin()} or |
7346 | 7374 | is a dereferenceable iterator in the range \range{begin()}{end()}.
|
7347 | 7375 | \tcode{rg} and \tcode{*this} do not overlap.
|
7348 | 7376 |
|
|
7364 | 7392 | \begin{itemdescr}
|
7365 | 7393 | \pnum
|
7366 | 7394 | \effects
|
7367 |
| -\tcode{insert_after(position, il.begin(), il.end())}. |
7368 |
| - |
7369 |
| -\pnum |
7370 |
| -\returns |
7371 |
| -An iterator pointing to the last inserted element or \tcode{position} if \tcode{il} is empty. |
| 7395 | +Equivalent to: \tcode{return insert_after(position, il.begin(), il.end());} |
7372 | 7396 | \end{itemdescr}
|
7373 | 7397 |
|
7374 | 7398 |
|
|
7381 | 7405 | \begin{itemdescr}
|
7382 | 7406 | \pnum
|
7383 | 7407 | \expects
|
| 7408 | +\tcode{T} is \oldconcept{EmplaceConstructible} into \tcode{forward_list} |
| 7409 | +from \tcode{std::forward<Args>(\linebreak args)...}. |
7384 | 7410 | \tcode{position} is \tcode{before_begin()} or is a dereferenceable
|
7385 | 7411 | iterator in the range \range{begin()}{end()}.
|
7386 | 7412 |
|
7387 | 7413 | \pnum
|
7388 | 7414 | \effects
|
7389 |
| -Inserts an object of type \tcode{value_type} constructed with |
7390 |
| -\tcode{value_type(std::forward<Args>(\brk{}args)...)} after \tcode{position}. |
| 7415 | +Inserts an object of type \tcode{value_type} direct-non-list-initialized with |
| 7416 | +\tcode{std::forward<Args>(\linebreak args)...} after \tcode{position}. |
7391 | 7417 |
|
7392 | 7418 | \pnum
|
7393 | 7419 | \returns
|
|
0 commit comments