From b932f726835124b3a17b2a8f19da1dac88aa34ca Mon Sep 17 00:00:00 2001 From: sheeputech <41723156+sheeputech@users.noreply.github.com> Date: Sun, 25 Aug 2019 00:34:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=81=AE?= =?UTF-8?q?=E8=AA=A4=E3=82=8A=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 細かい点で失礼しますが、std::remove で消しているのが 2 なので残る要素は 1, 3 であるとおもわれます。 --- 016-algorithm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/016-algorithm.md b/016-algorithm.md index ca07399..bbef314 100644 --- a/016-algorithm.md +++ b/016-algorithm.md @@ -1135,7 +1135,7 @@ int main() auto last = std::remove( std::begin(v), std::end(v), 2 ) ; - // "12" + // "13" std::for_each( std::begin(v), last, [](auto x) { std::cout << x ; } ) ;