#include <vector>
using namespace std;
int main()
{
int w=1920;
int h = 1080;
vector<int> dataA( w*h ,0Xff); vector<int> dataB = dataA; int * ptr0 = &dataA[0];
int * ptr1 = &dataB[0]; printf( "%u\n",ptr0 );
printf("%u\n", ptr1); return 0;
}

output:

959246464
967577728

两者数据指针地址不同 ,  所以是深拷贝!!!

最新文章

  1. Redis连接
  2. thinkphp自定义标签库
  3. js隐式转换
  4. PHP团队 编码规范 &amp; 代码样式风格规范
  5. Linux学习笔记(7)Linux常用命令之压缩解压命令
  6. SQLServer数据库的一些全局变量
  7. iOS开发——高级技术&amp;生成二维码
  8. Python 学习入门(22)—— 线程同步
  9. 浅谈href=#与href=javascript:void(0)的区别
  10. shell编程值之shell流程控制(7)
  11. selenium模块
  12. S-CMS企业建站v3几处SQL注入
  13. Troubleshooting tips for using Java on Windows 8
  14. 5.28 js基础 简介
  15. HTTP 各状态码大全
  16. 7za命令报错Error: xxx is not supported archive
  17. SQLServer限制IP,限制用户,限制SSMS登录
  18. 天气提醒邮件服务器(python + scrapy + yagmail)
  19. java中的Iterator和Iterable 区别
  20. 【ASP.NET 框架系列】您所经历的,但未必研究的那些技术

热门文章

  1. Centos7安装zabbix3.4.0以及配置和使用
  2. Qwidget::update
  3. npm教程、脚手架
  4. MGR集群搭建
  5. 【Leetcode_easy】645. Set Mismatch
  6. .Net Core 定时器Quartz
  7. python的jenkins三方包
  8. 【嵌入式硬件Esp32】ESP32学习之在windows下搭建eclipse开发环境
  9. 【数据库开发】 C连接mysql——常用的函数
  10. async/await小知识点