Can we create an instance of class type at the specified location in memory? [duplicate]
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.
精彩评论