aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--list.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/list.cpp b/list.cpp
index df8cc13..e95a0ac 100644
--- a/list.cpp
+++ b/list.cpp
@@ -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;
}