|
3883 | 3883 | void splice_after(const_iterator position, forward_list&& x,
|
3884 | 3884 | const_iterator first, const_iterator last);
|
3885 | 3885 |
|
3886 |
| - void remove(const T& value); |
3887 |
| - template<class Predicate> void remove_if(Predicate pred); |
| 3886 | + size_type remove(const T& value); |
| 3887 | + template<class Predicate> size_type remove_if(Predicate pred); |
3888 | 3888 |
|
3889 |
| - void unique(); |
3890 |
| - template<class BinaryPredicate> void unique(BinaryPredicate binary_pred); |
| 3889 | + size_type unique(); |
| 3890 | + template<class BinaryPredicate> size_type unique(BinaryPredicate binary_pred); |
3891 | 3891 |
|
3892 | 3892 | void merge(forward_list& x);
|
3893 | 3893 | void merge(forward_list&& x);
|
|
4328 | 4328 | \indexlibrarymember{remove}{forward_list}%
|
4329 | 4329 | \indexlibrarymember{remove_if}{forward_list}%
|
4330 | 4330 | \begin{itemdecl}
|
4331 |
| -void remove(const T& value); |
4332 |
| -template<class Predicate> void remove_if(Predicate pred); |
| 4331 | +size_type remove(const T& value); |
| 4332 | +template<class Predicate> size_type remove_if(Predicate pred); |
4333 | 4333 | \end{itemdecl}
|
4334 | 4334 |
|
4335 | 4335 | \begin{itemdescr}
|
|
4339 | 4339 | \tcode{pred(*i)} is \tcode{true} (for \tcode{remove_if()}).
|
4340 | 4340 | Invalidates only the iterators and references to the erased elements.
|
4341 | 4341 |
|
| 4342 | +\pnum |
| 4343 | +\returns The number of elements erased. |
| 4344 | + |
4342 | 4345 | \pnum
|
4343 | 4346 | \throws Nothing unless an exception is thrown by the equality comparison or the
|
4344 | 4347 | predicate.
|
|
4353 | 4356 |
|
4354 | 4357 | \indexlibrarymember{unique}{forward_list}%
|
4355 | 4358 | \begin{itemdecl}
|
4356 |
| -void unique(); |
4357 |
| -template<class BinaryPredicate> void unique(BinaryPredicate pred); |
| 4359 | +size_type unique(); |
| 4360 | +template<class BinaryPredicate> size_type unique(BinaryPredicate pred); |
4358 | 4361 | \end{itemdecl}
|
4359 | 4362 |
|
4360 | 4363 | \begin{itemdescr}
|
|
4365 | 4368 | *(i - 1))} (for the version with a predicate argument) holds.
|
4366 | 4369 | Invalidates only the iterators and references to the erased elements.
|
4367 | 4370 |
|
| 4371 | +\pnum |
| 4372 | +\returns The number of elements erased. |
| 4373 | + |
4368 | 4374 | \pnum
|
4369 | 4375 | \throws Nothing unless an exception is thrown by the equality comparison or the predicate.
|
4370 | 4376 |
|
|
4574 | 4580 | void splice(const_iterator position, list& x, const_iterator first, const_iterator last);
|
4575 | 4581 | void splice(const_iterator position, list&& x, const_iterator first, const_iterator last);
|
4576 | 4582 |
|
4577 |
| - void remove(const T& value); |
4578 |
| - template<class Predicate> void remove_if(Predicate pred); |
| 4583 | + size_type remove(const T& value); |
| 4584 | + template<class Predicate> size_type remove_if(Predicate pred); |
4579 | 4585 |
|
4580 |
| - void unique(); |
| 4586 | + size_type unique(); |
4581 | 4587 | template<class BinaryPredicate>
|
4582 |
| - void unique(BinaryPredicate binary_pred); |
| 4588 | + size_type unique(BinaryPredicate binary_pred); |
4583 | 4589 |
|
4584 | 4590 | void merge(list& x);
|
4585 | 4591 | void merge(list&& x);
|
|
4961 | 4967 |
|
4962 | 4968 | \indexlibrary{\idxcode{remove}!\idxcode{list}}%
|
4963 | 4969 | \begin{itemdecl}
|
4964 |
| -void remove(const T& value); |
4965 |
| -template<class Predicate> void remove_if(Predicate pred); |
| 4970 | +size_type remove(const T& value); |
| 4971 | +template<class Predicate> size_type remove_if(Predicate pred); |
4966 | 4972 | \end{itemdecl}
|
4967 | 4973 |
|
4968 | 4974 | \begin{itemdescr}
|
|
4972 | 4978 | following conditions hold: \tcode{*i == value}, \tcode{pred(*i) != false}.
|
4973 | 4979 | Invalidates only the iterators and references to the erased elements.
|
4974 | 4980 |
|
| 4981 | +\pnum |
| 4982 | +\returns The number of elements erased. |
| 4983 | + |
4975 | 4984 | \pnum
|
4976 | 4985 | \throws
|
4977 | 4986 | Nothing unless an exception is thrown by
|
|
4991 | 5000 |
|
4992 | 5001 | \indexlibrary{\idxcode{unique}!\idxcode{list}}%
|
4993 | 5002 | \begin{itemdecl}
|
4994 |
| -void unique(); |
4995 |
| -template<class BinaryPredicate> void unique(BinaryPredicate binary_pred); |
| 5003 | +size_type unique(); |
| 5004 | +template<class BinaryPredicate> size_type unique(BinaryPredicate binary_pred); |
4996 | 5005 | \end{itemdecl}
|
4997 | 5006 |
|
4998 | 5007 | \begin{itemdescr}
|
|
5005 | 5014 | \tcode{unique} with a predicate argument) holds.
|
5006 | 5015 | Invalidates only the iterators and references to the erased elements.
|
5007 | 5016 |
|
| 5017 | +\pnum |
| 5018 | +\returns The number of elements erased. |
| 5019 | + |
5008 | 5020 | \pnum
|
5009 | 5021 | \throws
|
5010 | 5022 | Nothing unless an exception is thrown by
|
|
0 commit comments