|
6841 | 6841 | implementation-specific optimizations.
|
6842 | 6842 | \end{note}
|
6843 | 6843 | If the size is equal to the old capacity, or
|
6844 |
| -if an exception is thrown other than by the move constructor |
6845 |
| -of a non-\oldconcept{CopyInsertable} \tcode{T}, |
| 6844 | +if an exception is thrown other than by |
| 6845 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
6846 | 6846 | then there are no effects.
|
6847 | 6847 |
|
6848 | 6848 | \pnum
|
|
6908 | 6908 |
|
6909 | 6909 | \pnum
|
6910 | 6910 | \remarks
|
6911 |
| -If an exception is thrown other than by the |
6912 |
| -copy constructor, move constructor, |
6913 |
| -assignment operator, or move assignment operator of |
6914 |
| -\tcode{T}, |
| 6911 | +If an exception is thrown other than by |
| 6912 | +the construction or assignment of one object of type \tcode{T} from another, |
6915 | 6913 | there are no effects.
|
6916 | 6914 | If an exception is thrown while inserting a single element at either end,
|
6917 | 6915 | there are no effects.
|
6918 |
| -Otherwise, if an exception is thrown by the move constructor of a |
6919 |
| -non-\oldconcept{CopyInsertable} |
6920 |
| -\tcode{T}, the effects are unspecified. |
| 6916 | +Otherwise, if an exception is thrown by |
| 6917 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
| 6918 | +the effects are unspecified. |
6921 | 6919 | \end{itemdescr}
|
6922 | 6920 |
|
6923 | 6921 | \indexlibrarymember{erase}{deque}%
|
|
6943 | 6941 |
|
6944 | 6942 | \pnum
|
6945 | 6943 | \throws
|
6946 |
| -Nothing unless an exception is thrown by the assignment operator of |
6947 |
| -\tcode{T}. |
| 6944 | +Nothing unless an exception is thrown by |
| 6945 | +the assignment of one object of type \tcode{T} from another. |
6948 | 6946 |
|
6949 | 6947 | \pnum
|
6950 | 6948 | \complexity
|
|
8966 | 8964 | otherwise.
|
8967 | 8965 | Reallocation happens at this point if and only if the current capacity is less than the
|
8968 | 8966 | argument of
|
8969 |
| -\tcode{reserve()}. If an exception is thrown |
8970 |
| -other than by the move constructor of a non-\oldconcept{CopyInsertable} type, |
| 8967 | +\tcode{reserve()}. If an exception is thrown other than by |
| 8968 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
8971 | 8969 | there are no effects.
|
8972 | 8970 |
|
8973 | 8971 | \pnum
|
|
9017 | 9015 | \end{note}
|
9018 | 9016 | It does not increase \tcode{capacity()}, but may reduce \tcode{capacity()}
|
9019 | 9017 | by causing reallocation.
|
9020 |
| -If an exception is thrown other than by the move constructor |
9021 |
| -of a non-\oldconcept{CopyInsertable} \tcode{T}, there are no effects. |
| 9018 | +If an exception is thrown other than by |
| 9019 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
| 9020 | +there are no effects. |
9022 | 9021 |
|
9023 | 9022 | \pnum
|
9024 | 9023 | \complexity
|
|
9074 | 9073 |
|
9075 | 9074 | \pnum
|
9076 | 9075 | \remarks
|
9077 |
| -If an exception is thrown other than by the move constructor of a non-\oldconcept{CopyInsertable} |
9078 |
| -\tcode{T}, there are no effects. |
| 9076 | +If an exception is thrown other than by |
| 9077 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
| 9078 | +there are no effects. |
9079 | 9079 | \end{itemdescr}
|
9080 | 9080 |
|
9081 | 9081 | \indexlibrarymember{resize}{vector}%
|
|
9161 | 9161 | including the past-the-end iterator,
|
9162 | 9162 | are invalidated.
|
9163 | 9163 | If an exception is thrown other than by
|
9164 |
| -the copy constructor, move constructor, |
9165 |
| -assignment operator, or move assignment operator of |
9166 |
| -\tcode{T} or by any \tcode{InputIterator} operation, |
| 9164 | +the construction or assignment of one object of type \tcode{T} from another, |
| 9165 | +or by any \tcode{InputIterator} operation, |
9167 | 9166 | there are no effects.
|
9168 | 9167 | If an exception is thrown while inserting a single element at the end and
|
9169 | 9168 | \tcode{T} is \oldconcept{CopyInsertable} or \tcode{is_nothrow_move_constructible_v<T>}
|
9170 | 9169 | is \tcode{true}, there are no effects.
|
9171 |
| -Otherwise, if an exception is thrown by the move constructor of a non-\oldconcept{CopyInsertable} |
9172 |
| -\tcode{T}, the effects are unspecified. |
| 9170 | +Otherwise, if an exception is thrown by |
| 9171 | +the move-construction of one object of non-\oldconcept{CopyInsertable} type \tcode{T} from another, |
| 9172 | +the effects are unspecified. |
9173 | 9173 | \end{itemdescr}
|
9174 | 9174 |
|
9175 | 9175 | \indexlibrarymember{erase}{vector}%
|
|
9186 | 9186 |
|
9187 | 9187 | \pnum
|
9188 | 9188 | \throws
|
9189 |
| -Nothing unless an exception is thrown by the |
9190 |
| -assignment operator or move assignment operator of |
9191 |
| -\tcode{T}. |
| 9189 | +Nothing unless an exception is thrown by |
| 9190 | +the construction or assignment of one object of type \tcode{T} from another. |
9192 | 9191 |
|
9193 | 9192 | \pnum
|
9194 | 9193 | \complexity
|
|
9893 | 9892 |
|
9894 | 9893 | \pnum
|
9895 | 9894 | \remarks
|
9896 |
| -If an exception is thrown other than by the |
9897 |
| -copy constructor, |
9898 |
| -move constructor, |
9899 |
| -assignment operator, or |
9900 |
| -move assignment operator |
9901 |
| -of \tcode{T} or by |
9902 |
| -any \tcode{InputIterator} operation, |
| 9895 | +If an exception is thrown other than by |
| 9896 | +the construction or assignment of one object of type \tcode{T} from another, |
| 9897 | +or by any \tcode{InputIterator} operation, |
9903 | 9898 | there are no effects.
|
9904 | 9899 | Otherwise,
|
9905 | 9900 | if an exception is thrown, then
|
|
10097 | 10092 | \pnum
|
10098 | 10093 | \throws
|
10099 | 10094 | Nothing unless an exception is thrown by
|
10100 |
| -the assignment operator or move assignment operator of \tcode{T}. |
| 10095 | +the assignment of one object of type \tcode{T} from another. |
10101 | 10096 |
|
10102 | 10097 | \pnum
|
10103 | 10098 | \complexity
|
|
0 commit comments