如果调用std :: vector :: begin()但将返回的迭代器分配给引用会发生什么?为什么它可以工作,迭代器值存储在哪里?
std::vector<int> v;
auto a = v.begin(); //I assume iterator is stored on the stack in variable "a".
auto& b = v.begin(); //What happens here?
Run Code Online (Sandbox Code Playgroud)