|
853 | 853 | \tcode{T} is also
|
854 | 854 | \tcode{MoveInsertable} into \tcode{X} and \tcode{MoveAssignable}.
|
855 | 855 | \effects\ Inserts an object of type \tcode{T} constructed with
|
856 |
| - \tcode{std::forward<\brk{}Args\brk{}>(\brk{}args)...} before \tcode{p}. \\ \rowsep |
| 856 | + \tcode{std::forward<\brk{}Args\brk{}>(\brk{}args)...} before \tcode{p}. |
| 857 | + \begin{note} \tcode{args} may directly or indirectly refer to |
| 858 | + a value in \tcode{a}. \end{note} |
| 859 | + \\ \rowsep |
857 | 860 |
|
858 | 861 | \tcode{a.insert(p,t)} &
|
859 | 862 | \tcode{iterator} &
|
|
4237 | 4240 | \requires \tcode{position} is \tcode{before_begin()} or is a dereferenceable
|
4238 | 4241 | iterator in the range \range{begin()}{end()}.
|
4239 | 4242 | \tcode{get_allocator() == x.get_allocator()}.
|
4240 |
| -\tcode{\&x != this}. |
| 4243 | +\tcode{addressof(x) != this}. |
4241 | 4244 |
|
4242 | 4245 | \pnum
|
4243 | 4246 | \effects Inserts the contents of \tcode{x} after
|
|
4834 | 4837 | \begin{itemdescr}
|
4835 | 4838 | \pnum
|
4836 | 4839 | \requires
|
4837 |
| -\tcode{\&x != this}. |
| 4840 | +\tcode{addressof(x) != this}. |
4838 | 4841 |
|
4839 | 4842 | \pnum
|
4840 | 4843 | \effects
|
|
5038 | 5041 |
|
5039 | 5042 | \pnum
|
5040 | 5043 | \effects
|
5041 |
| -If \tcode{(\&x == this)} does nothing; otherwise, merges the two sorted ranges \tcode{[begin(), |
| 5044 | +If \tcode{addressof(x) == this}, does nothing; otherwise, merges the two sorted ranges \tcode{[begin(), |
5042 | 5045 | end())} and \tcode{[x.\brk{}begin(), x.end())}. The result is a range in which the elements
|
5043 | 5046 | will be sorted in non-decreasing order according to the ordering defined by \tcode{comp}; that
|
5044 | 5047 | is, for every iterator \tcode{i}, in the range other than the first, the condition
|
|
5049 | 5052 | \tcode{x}.
|
5050 | 5053 |
|
5051 | 5054 | \pnum
|
5052 |
| -\remarks Stable\iref{algorithm.stable}. If \tcode{(\&x != this)} the range \tcode{[x.begin(), x.end())} |
| 5055 | +\remarks Stable\iref{algorithm.stable}. If \tcode{addressof(x) != this}, the range \tcode{[x.begin(), x.end())} |
5053 | 5056 | is empty after the merge.
|
5054 | 5057 | No elements are copied by this operation. The behavior is undefined if
|
5055 | 5058 | \tcode{get_allocator() != x.get_allocator()}.
|
|
5059 | 5062 | At most
|
5060 | 5063 | \tcode{size() + x.size() - 1}
|
5061 | 5064 | applications of \tcode{comp} if
|
5062 |
| -\tcode{(\&x != this)}; |
| 5065 | +\tcode{addressof(x) != this}; |
5063 | 5066 | otherwise, no applications of \tcode{comp} are performed.
|
5064 | 5067 | If an exception is thrown other than by a comparison there are no effects.
|
5065 | 5068 | \end{itemdescr}
|
|
5369 | 5372 | \returns
|
5370 | 5373 | The total number of elements that the vector can hold
|
5371 | 5374 | without requiring reallocation.
|
| 5375 | + |
| 5376 | +\pnum |
| 5377 | +\complexity Constant time. |
5372 | 5378 | \end{itemdescr}
|
5373 | 5379 |
|
5374 | 5380 | \indexlibrary{\idxcode{reserve}!\idxcode{vector}}%
|
|
0 commit comments