What does [](int* p){delete p;} mean?
c++
Solution
It's a capture-less lambda expression that takes a pointer to an `int` and calls `delete` on it. Here's another MSDN link that explains the grammar of lambdas.
Problem
Could someone help me to understand what ``` [](int* p){delete p;} ``` means? I found it in the docs. for shared_ptr http://www.cplusplus.com/reference/memory/shared_ptr/shared_ptr/