533 auto increment = [] (
int a) ->
int {
return a + 1; };
534 assert(increment(5) == 6);
537 assert(use_lambda(2, increment) == 3);
538 set_lambda(increment);
539 assert(call_lambda(3) == 4);
542 assert(use_lambda(1, [](
int a) {
return a + 1;}) == 2);
545 [x] ()
mutable { assert(++x);}();