From c9cb7620cb0cbef91f1d7f99ad3022c635ae1e8a Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 22 Mar 2020 15:28:01 +0000 Subject: [PATCH] .upptst: PdbAll git-svn-id: svn://ultimatepp.org/upp/trunk@14180 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/PdbAll/PdbAll.cpp | 10 ++++++++++ upptst/PdbTests2/main.cpp | 16 ++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/upptst/PdbAll/PdbAll.cpp b/upptst/PdbAll/PdbAll.cpp index dc32565e7..e716eab2d 100644 --- a/upptst/PdbAll/PdbAll.cpp +++ b/upptst/PdbAll/PdbAll.cpp @@ -4,6 +4,10 @@ #include #include #include +#include +#include +#include +#include using namespace Upp; @@ -30,9 +34,15 @@ GUI_APP_MAIN std::string std_string = "Hello world!"; std::wstring std_wstring = wstring.ToStd(); std::vector std_vector { "I", "II", "III", "IV", "V" }; + std::deque std_deqeue { "I", "II", "III", "IV", "V" }; std::list std_list { "I", "II", "III", "IV", "V" }; + std::forward_list std_forward_list { "I", "II", "III", "IV", "V" }; std::set std_set { "I", "II", "III", "IV", "V" }; std::multiset std_multiset { "I", "II", "III", "IV", "V" }; std::map std_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; std::multimap std_multimap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + std::unordered_set std_unordered_set { "I", "II", "III", "IV", "V" }; + std::unordered_multiset std_unordered_multiset { "I", "II", "III", "IV", "V" }; + std::unordered_map std_unordered_map { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; + std::unordered_multimap std_unordered_multimap { { 1 , "I"}, { 2, "II" }, { 3, "III"}, { 4, "IV"}, { 5, "V" } }; } diff --git a/upptst/PdbTests2/main.cpp b/upptst/PdbTests2/main.cpp index 18c006164..3351b3fc2 100644 --- a/upptst/PdbTests2/main.cpp +++ b/upptst/PdbTests2/main.cpp @@ -4,12 +4,24 @@ #include #include #include +#include +#include +#include +#include using namespace Upp; CONSOLE_APP_MAIN { // std::set s; - std::list l0; - std::list l = { 1, 2, 3, 4 }; + std::unordered_map l0; + std::unordered_map l; + + for(int i = 0; i < 5; i++) + l[i] = AsString(i).ToStd(); + + int n = l.size(); + for(auto i : l) { + ; + } }