I'm feeling a bit dodgy tonight so I've resolved the only sensible thing to do is press on with learning code lol! So I'm asking the question stated in the title. Check this code out:
Code:
void SetWindow(CoreWindow const& window)
{
.....some time later
Code:
window.Activated({ this, &App::OnWindowActivationChanged });
window.SizeChanged({ this, &App::OnWindowSizeChanged });
window.Closed({ this, &App::OnWindowClosed });
};
All those function calls (which is what I think they are or are they data members?) are having standard brackets with these curly brackets inside them. I'm amazed this doesn't throw the compiler.
Is this code like making structs on the fly and passing them to function calls or something? It's totally new to me to see this, thanks