C++ prime:the method for construct a sequential container

本文介绍了构造序列容器的五种方法:默认构造、复制构造、迭代器范围构造、指定元素数量及值构造、指定元素数量构造。第五种方法仅适用于序列容器。



There are five method to construct a sequential container:
     1.     C<T> c     // construct a default container which has type T.
     2.     C  c(c2)  // construct a container which is a copy of container c2.
     3.     C c(b, e)  // construct a container which elements is from iterator b to e.
     4.     C c(n, t)   // construct a container which has n elements and all value is t.
     5.     C c(n)      // construct a container which has n elements and has initailelized value.

     Item 5 is just for sequentail container.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值