git-svn-id: svn://ultimatepp.org/upp/trunk@14169 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-03-15 17:49:21 +00:00
parent 134ac490da
commit 718f360c24
2 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@
#include <vector>
#include <map>
#include <set>
#include <list>
using namespace Upp;
@ -29,6 +30,7 @@ GUI_APP_MAIN
std::string std_string = "Hello world!";
std::wstring std_wstring = wstring.ToStd();
std::vector<std::string> std_vector { "I", "II", "III", "IV", "V" };
std::list<std::string> std_list { "I", "II", "III", "IV", "V" };
std::set<std::string> std_set { "I", "II", "III", "IV", "V" };
std::multiset<std::string> std_multiset { "I", "II", "III", "IV", "V" };
std::map<int, std::string> std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };

View file

@ -3,11 +3,13 @@
#include <vector>
#include <map>
#include <set>
#include <list>
using namespace Upp;
CONSOLE_APP_MAIN
{
VectorMap<int, String> vectormap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
std::map<int, std::string> std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } };
// std::set<int> s;
std::list<int> l0;
std::list<int> l = { 1, 2, 3, 4 };
}