简体   繁体   English

矢量对象初始化

[英]Vector object initialisation

I've been wandering on the internet trying to solve some problem in my program. 我一直在互联网上徘徊,试图解决程序中的某些问题。 I can't find suffisent information on the Vector object in the documentation about the standards. 我在有关标准的文档中找不到有关Vector对象的充足信息。

So, my question is : what is the default value affected to a newly created Vector object using the default constructor ? 所以,我的问题是:使用默认构造函数对默认创建的Vector对象有什么影响?

如果您的意思是std::vector ,则默认构造函数将构造一个包含0个元素的空向量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM