下列函数中的new函数问题
AFX_INLINE void AFXAPI ConstructElements(TYPE* pElements, int nCount)
{
ASSERT(nCount == 0 ||
AfxIsValidAddress(pElements, nCount * sizeof(TYPE)));
// first do bit-wise zero initialization
memset((void*)pElements, 0, nCount * sizeof(TYPE));
// then call the constructor(s)
for (; nCount--; pElements++)
::new((void*)pElements) TYPE;
}
//这里的::new((void*)pElements) TYPE;仅仅是调用TYPE的构造函数吗?这种调用将TYPE能放在后面看不懂,请高人指点下。