无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

智能指針

2023-04-08 01:45 作者:胖廚z  | 我要投稿

#include <iostream>

#include <string>

#include <memory>

#include <vector>

typedef std::shared_ptr< Tag > tag_ptr;

const tag_ptr func(int index, const std::vector< tag_ptr >& list)

{

? ? if (list.size() > index)

? ? {

? ? ? ? return list[index];

? ? }

? ? throw std::out_of_range("index");

}

int main()

{

?? ? if (true)

? ? {

? ? ? ? std::vector < tag_ptr > test_vecotr = {};

? ? ? ? tag_ptr p;

? ? ? ? for (int i = 0; i < 10; i++)

? ? ? ? {

? ? ? ? ? ? p = std::make_shared< Tag >(i, std::to_string(i));

? ? ? ? ? ? std::cout << p << "|" << p->getValue() << std::endl;

? ? ? ? ? ? test_vecotr.push_back(p);

? ? ? ? }

? ? ? ? p = func(5, test_vecotr);

? ? ? ? std::cout << p << "|" << p->getValue() << std::endl;

? ? }

? ? return 0;

}

0000027FDC0EFE20|0

0000027FDC0EC720|1

0000027FDC0EC300|2

0000027FDC0ECFD0|3

0000027FDC102080|4

0000027FDC102C80|5

0000027FDC102C00|6

0000027FDC102E80|7

0000027FDC102B00|8

0000027FDC102980|9

0000027FDC102C80|5

Deallocate the memory 0

Deallocate the memory 1

Deallocate the memory 2

Deallocate the memory 3

Deallocate the memory 4

Deallocate the memory 5

Deallocate the memory 6

Deallocate the memory 7

Deallocate the memory 8

Deallocate the memory 9

Deallocate the memory LWPOLYLINE

Deallocate the memory LINE

Deallocate the memory CIRCLE

Deallocate the memory ARC

Deallocate the memory OBJECTS

Deallocate the memory ENTITIES

Deallocate the memory BLOCKS

Deallocate the memory TABLES

Deallocate the memory CLASSES

Deallocate the memory HEADER

Deallocate the memory EOF

Deallocate the memory ENDSEC

Deallocate the memory SECTION


智能指針的評論 (共 條)

分享到微博請遵守國家法律
桐柏县| 调兵山市| 怀远县| 凉城县| 商河县| 绥化市| 桐柏县| 巴中市| 莲花县| 岫岩| 察隅县| 集贤县| 蓬安县| 浮山县| 平和县| 榆林市| 怀远县| 高清| 定州市| 买车| 肥乡县| 平顺县| 稷山县| 阜平县| 高雄县| 西安市| 泸定县| 新化县| 新郑市| 句容市| 综艺| 宾川县| 屯昌县| 江西省| 枣庄市| 抚顺市| 贵南县| 确山县| 定安县| 乌鲁木齐市| 清新县|