摘要: 看侯捷老师的stl 源码剖析时,在allocator设计一个简单的空间适配器那一节看到这么个奇怪的语法: template<class T1,class T2>inline void _construct(T1 *p,const T2& value){ new(p) T1(value);}给出的注释是place new,invoke ctor of T1第一次知道有这么个语法,网上查了一下... 阅读全文
posted @ 2013-04-28 09:35 曾见绝美的阳光 阅读(770) 评论(0) 推荐(0) 编辑