# How to set all items in vector std::vector\<std::vector\<cv::Point\> \> test to 0?

**URL:** <https://forum.opencv.org/t/how-to-set-all-items-in-vector-std-vector-std-vector-cv-point-test-to-0/9410>\
**Category:** Uncategorized\
**Tags:** core\
**Created:** [July 6, 2022, 12:45am UTC](https://forum.opencv.org/t/how-to-set-all-items-in-vector-std-vector-std-vector-cv-point-test-to-0/9410 "2022-07-06T00:45:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jNc](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jNc](https://forum.opencv.org/u/jNc)\
**Post date:** [July 6, 2022, 12:45am UTC](https://forum.opencv.org/t/how-to-set-all-items-in-vector-std-vector-std-vector-cv-point-test-to-0/9410/1 "2022-07-06T00:45:27Z")

</div>

how to assign 0 to all items in `vector std::vector<std::vector<cv::Point> > test`?

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [July 7, 2022, 8:05am UTC](https://forum.opencv.org/t/how-to-set-all-items-in-vector-std-vector-std-vector-cv-point-test-to-0/9410/2 "2022-07-07T08:05:36Z")

</div>

why do you need to do this ? and what is already in your data before ?  
please add some “context” here.
