File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5114
5114
5115
5115
\pnum
5116
5116
Implementations should avoid the use of dynamically allocated memory for a small contained value.
5117
+ However, any such small-object optimization shall only be applied to types \tcode{T} for which
5118
+ \tcode{is_nothrow_move_constructible_v<T>} is \tcode{true}.
5117
5119
\begin{example}
5118
- where the object constructed is holding only an \tcode{int}.
5120
+ A contained value of type \tcode{int} could be stored in an internal buffer,
5121
+ not in separately-allocated memory.
5119
5122
\end{example}
5120
- Such small-object optimization shall only be applied to types \tcode{T} for which
5121
- \tcode{is_nothrow_move_constructible_v<T>} is \tcode{true}.
5122
5123
5123
5124
\rSec3[any.cons]{Construction and destruction}
5124
5125
You can’t perform that action at this time.
0 commit comments