From ea70fcaa93365a0dc72615d66e535d656f4ffd9d Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Thu, 3 Jun 2021 00:13:11 +0800 Subject: [PATCH] no message --- test/src/cpp11/cpp11_test.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test/src/cpp11/cpp11_test.cpp b/test/src/cpp11/cpp11_test.cpp index 0c2b507..dac3bd0 100644 --- a/test/src/cpp11/cpp11_test.cpp +++ b/test/src/cpp11/cpp11_test.cpp @@ -1,8 +1,9 @@ #if __cplusplus >= 201103L #pragma message("编译器支持c++11") #endif - +#include #include +#include using namespace std; #include "thread_usage.h" #include "threadpool.h" @@ -14,7 +15,6 @@ extern "C"{ } #include "loger.h" - int main(){ // std::cout<<"test start"< i; + i.insert(i.begin(),2); + i.insert(i.begin(),3); + i.insert(i.begin(),4); + i.insert(i.begin(),5); + i.insert(i.begin(),6); + + list::iterator pos = (find(i.begin(), i.end(), 4)); + i.insert(pos,1); + + for(auto x : i){ + std::cout<