std::vector size_type 是STL的什么用法

侯捷讲C++ STL

https://www.bilibili.com/video/av68567064?from=search&seid=14752729431408420500

STL用法整理

https://blog.csdn.net/weixin_34037173/article/details/93175766

行和列变量应该声明为 size_type。size_type 变量保存向量的大小。size_type 声明如下所示:

std::vector<int>::size_type variablename;
发布了100 篇原创文章 · 获赞 81 · 访问量 160万+

猜你喜欢

转载自blog.csdn.net/studyvcmfc/article/details/104097864