Strange “->* []” expression in C++ source code of cpp.react library
问题 Here is a C++ snippet that I found in the documentation of the cpp.react library: auto in = D::MakeVar(0); auto op1 = in ->* [] (int in) { int result = in /* Costly operation #1 */; return result; }; I have never seen the ->* [] notation. First, I thought that it was just a typo, but I also found such an expression in the source code: auto volume = (width,height,depth) ->* [] (int w, int h, int d) { return w * h * d; }; Is this valid C++11 (or C++14)? What does it mean? 回答1: The only example