Skip to content

Commit 0d6647b

Browse files
committed
Clarify that value-init is used when STL enlarges containers.
1 parent 48a8bce commit 0d6647b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

talk/morelanguage/initialization.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
\item Unless \cppinline{T} has a \cppinline{std::initializer_list} constructor that you do not want to call!
161161
\item Be wary of \cppinline{std::vector}!
162162
\end{itemize}
163-
\item The STL value initializes when creating new user objects
163+
\item The STL uses value inititalisation when resizing containers
164164
\begin{itemize}
165165
\item E.g. \cppinline{vec.resize(vec.size() + 10);}
166166
\end{itemize}

0 commit comments

Comments
 (0)