(list)+example for map in main
This commit is contained in:
2
list.cpp
2
list.cpp
@@ -80,6 +80,8 @@ int main(void)
|
|||||||
std::cout << lst << std::endl;
|
std::cout << lst << std::endl;
|
||||||
lst = reverse(lst);
|
lst = reverse(lst);
|
||||||
std::cout << lst << std::endl;
|
std::cout << lst << std::endl;
|
||||||
|
map<int, int>(lst = reverse(lst), [](int x){ return x * 2; });
|
||||||
|
std::cout << lst << std::endl;
|
||||||
delete lst;
|
delete lst;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user