c++ shared_ptr?????????????????
???????????? ???????[ 2012/9/18 10:24:00 ] ????????
????5??share_ptr???????????????????????share_ptr??auto_ptr?????????????????????????????????????????????????????????????????????ü?????1?????????????????????????????????????????????????????????????????????£?????java????????????????????????????share_ptr??????????????????????????????
#include
int main (int argc?? const char * argv[])
typedef vector< shared_ptr |
???????????????
????sharedArray[5]???????6
????sharedArray[5]???????ü??????1
????sharedArray[5]?????????????10
????sharedArray[5]?????????ü??????2
????sharedArray[5]?????????????ü??????3
????sharedArray[5]??????0x10010092c??p1??????0x10010092c??p2??????0x10010092c
????sharedArray[5]?????????????5
???????????????????????????sharedArray[5]???????ü?????1???????????????????sharedArray[5]????p1??p2??????????????????????????????????????????????????????????????????????????????
????6??share_ptr???????????????????????????????ù?????shared_ptr(Y *p ?? D d)??????shared_ptr??????е??????????????????????京???????????????????????????????????????????d?????shared_ptr???????????????????delete?????????????p???????÷???d????????????d(p)??????delete p???????d?????????????????????????d????????????????????????????????????????????d???????????????p???????????????????????????????????????????????м?d????ζ????????????delete?????????????????????????????
????????????????????????shared_ptr???С????????к???漰c++??????????????????????????????????????????
???????????д??????????????????л??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11