Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7592ed

Browse files
Clarify that value-init is used when STL enlarges containers.
1 parent 0926603 commit e7592ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎talk/morelanguage/initialization.tex

Lines changed: 1 addition & 1 deletion
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 initialisation when resizing containers
164164
\begin{itemize}
165165
\item E.g. \cppinline{vec.resize(vec.size() + 10);}
166166
\end{itemize}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /