how to clear a vector of pairs

Правка en1, от Tanish55, 2023-07-28 00:27:24

i have a vector of pairs vector<pair<int , bool >>v; lets say initial values of vector of pair v is : 1 -> 0 2 -> 1 3 -> 0 now i have want to again reset the boolean values of vector v to 0 s0 ,how can i do it without looping over vector v ?? is it possible

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Tanish55 2023-07-28 00:27:24 295 Initial revision (published)