(list)+example for map in main

This commit is contained in:
2021-11-22 05:59:48 +00:00
parent f4b08ddada
commit 8f0ee1694b

View File

@@ -80,6 +80,8 @@ int main(void)
std::cout << lst << std::endl;
lst = reverse(lst);
std::cout << lst << std::endl;
map<int, int>(lst = reverse(lst), [](int x){ return x * 2; });
std::cout << lst << std::endl;
delete lst;
return 0;
}