Home > Back-end >  How clear double vector data
How clear double vector data

Time:09-19

For example, define
The vector & lt; Vector t;
.
Tc Lear ();//directly clear will go wrong, and I need to t the size zero, how to break

CodePudding user response:

First one by one layer of the clear, in the outer layer,

CodePudding user response:

One by one, the clear inner and outer layer,

CodePudding user response:

 
STD: : vector: : resize (0);

CodePudding user response:

Test and two-dimensional vector can be directly the clear (), objects can be destructor,
  • Related