开发者

If I want to use std::shared_ptr, which header to include? [duplicate]

This question already has answers here: Where is shared_ptr? 开发者_运维技巧 (4 answers) Closed 9 years ago.

In c++0x shared_ptr will be moved from tr1 into std. So which header to include to get it?

I am using g++ 4.5 (ubuntu 10.10)


You'll find it in <memory> now.


  1. headfile is memory;
  2. It's defined in namespace std;
  3. You need specify -std=c++0x
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜