c++ Programming Glossary: numelements
Can placement new for arrays be used in a portable way? http://stackoverflow.com/questions/15254/can-placement-new-for-arrays-be-used-in-a-portable-way A public A data 0 virtual ~A int data int main const int NUMELEMENTS 20 char pBuffer new char NUMELEMENTS sizeof A A pA new pBuffer.. int main const int NUMELEMENTS 20 char pBuffer new char NUMELEMENTS sizeof A A pA new pBuffer A NUMELEMENTS With VC pA will be four.. pBuffer new char NUMELEMENTS sizeof A A pA new pBuffer A NUMELEMENTS With VC pA will be four bytes higher than pBuffer printf Buffer..
|