diff options
-rw-r--r-- | list.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |