From 9c3d78da339932b3c859dbef3cc5e90e4d6037aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richer=20Larivi=C3=A8re?= Date: Tue, 19 May 2015 08:30:51 -0400 Subject: [PATCH] Typo with Initializer Lists --- 07-Considering_Performance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/07-Considering_Performance.md b/07-Considering_Performance.md index 820b7c1..73f953e 100644 --- a/07-Considering_Performance.md +++ b/07-Considering_Performance.md @@ -96,8 +96,8 @@ auto mos = std::vector{mo1, mo2}; ```c++ // Don't do this std::vector mos; -mo.push_back(mo1); -mo.push_back(mo2); +mos.push_back(mo1); +mos.push_back(mo2); ``` Initializer lists are significantly more efficient; reducing object copies and resizing of containers