I recently read some C++ code like this:
setData(total, &user, ^() {
struct dst_t to = {ip, port};
sendData(to, data);
});
getData(total, ^{
recvData(data, NULL);
});
I've never seen ^() {}
nor ^{}
. What do they mean? Some kind of anonymous function?