What does [&] in the declaration of [&](Type& variable) mean? [duplicate]

It means that everything outside lambda scope will be catch by reference. In that case, generator and list.

Leave a Comment