Hey there people,
I have purchases the SFML 2.0 book (a while ago), it is going great, but some pieces of code in the book i don't 100% understand. I'm hoping someone here can just help me out with some parts,
On page 57 there is this piece of code
auto found = std::find_if(mChildren.begin(), mChildren.end(),
[&] (Ptr& p) -> bool { return p.get() == &node; });
found is a auto variable which is?
i understand the std::find_if
but what does this line mean? [&] (Ptr& p) -> boo
and return p.get() == &node;
I will also be asking more questions as I see them