diff --git a/TinySTL/Test/TestUtil.h b/TinySTL/Test/TestUtil.h index 30d8867..da01bd7 100644 --- a/TinySTL/Test/TestUtil.h +++ b/TinySTL/Test/TestUtil.h @@ -3,6 +3,7 @@ #include #include +#include #include "..\Algorithm.h" @@ -10,8 +11,8 @@ namespace TinySTL{ namespace Test{ template - void print_container(Container& container){//不是每一个容器都有const_iterator - std::cout << "Container : "; + void print_container(Container& container, const std::string& name = ""){//不是每一个容器都有const_iterator + std::cout << "Container " << name << " :"; for (auto val : container){ std::cout << val << " "; }