It is possible to iterate over std::vector
with &&
:
#include <vector>
class A {};
int main()
{
std::vector<A> vec;
for (auto&& v : vec)
{
static_cast<void>(v);
}
return 0;
}
It is possible to iterate over std::vector
with &&
:
#include <vector>
class A {};
int main()
{
std::vector<A> vec;
for (auto&& v : vec)
{
static_cast<void>(v);
}
return 0;
}