P
peter.vanna
Hi,
I have the following vector container.
***************
class A
{
public:
bool test;
}
vector<A> v
**************
I would like to set the "test" variable to be false for all the
elements in v. A simple code is
for(i=0;i<v.size;i++)
{
v.test=false;
}
Is there other approach (or built-in function) to do the same function
as the above for-loop? Thanks.
I have the following vector container.
***************
class A
{
public:
bool test;
}
vector<A> v
**************
I would like to set the "test" variable to be false for all the
elements in v. A simple code is
for(i=0;i<v.size;i++)
{
v.test=false;
}
Is there other approach (or built-in function) to do the same function
as the above for-loop? Thanks.