是否可以根据预定义的范围循环向量?
我需要这样的东西:
for(auto& it : myvector[0, 30])
或者:
for(auto& it : myvector[0-30])
这可能吗?我已经尝试了两种方法,但都不起作用。
c++
c++ ×1