From 0f0e1118c8ea4e50a1816211a7063070dedbba48 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Wed, 9 Jun 2021 22:57:23 +0800 Subject: [PATCH] no message --- test/src/cpp11/cpp11_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/src/cpp11/cpp11_test.cpp b/test/src/cpp11/cpp11_test.cpp index dac3bd0..f17bf89 100644 --- a/test/src/cpp11/cpp11_test.cpp +++ b/test/src/cpp11/cpp11_test.cpp @@ -33,6 +33,12 @@ int main(){ list::iterator pos = (find(i.begin(), i.end(), 4)); i.insert(pos,1); + auto begin = i.begin(); + while(*begin != 4) + begin++; + + i.erase(begin); + for(auto x : i){ std::cout<