c++ vector.size
时间: 2023-08-28 12:18:06 浏览: 135
C++ vector
根据引用所述,vector提供了size()函数来返回vector中元素的数量。所以,c vector.size()可以用来获取vector c中的元素数量。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [C++ vector的大小(Size)和容量(Capacity)](https://blog.csdn.net/w1820020635/article/details/122874601)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文