Tag: operator arrow star

在cpp.react库的C ++源代码中奇怪的“ – > * ”expression式

这里是我在cpp.react库的文档中find的C ++代码片段: auto in = D::MakeVar(0); auto op1 = in ->* [] (int in) { int result = in /* Costly operation #1 */; return result; }; 我从来没有见过->* []符号。 首先,我认为这只是一个错字,但我也在源代码中find了这样一个expression式: auto volume = (width,height,depth) ->* [] (int w, int h, int d) { return w * h * d; }; 这是有效的C + + 11(或C + […]