开发者

Can we create an instance of class type at the specified location in memory? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

C++'s “placem开发者_Go百科ent new”

Can we create an instance of class type at the specified location in memory?if yes then how and where we should use such programming techniques?


Yes, we can. Use new(area) operator.

Another discussion at SO.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜