vector<int> vec;
//a
auto foo = [&vec](){
//do something
};
//b
auto foo = [&v = vec](){
//do something
};
Do I understand it right that only difference between a and b is creation of alias "v" for "vec" in b case or is there more to it?