あるポインタ変数が与えられたとき、それはオブジェクトへのポインタを指すのか? T* X = new T; それとも、配列の先頭アドレスなのか? int array[N]; int* Y = &array[0]; 両者を区別することは難しい。 そこで、オブジェクト用のdeleteと、配列用のdeleteを用意して、 判断をプログラマにまかせているのだと思われ。 delete X; delete[] Y;
16.8 Predefined macro names The following macro names shall be defined by the implementation: ... _ _DATE_ _ The date of translation of the source file (a character string literal of the form "Mmm dd yyyy", where the names of the months are the same as those generated by the asctime function, and the first character of dd is a space character if the value is less than 10). If the date of translation is not available, an implementationdefined valid date is supplied. _ _TIME_ _ The time of translation of the source file (a character string literal of the form "hh:mm:ss" as in the time generated by the asctime function). If the time of translation is not available, an implementationdefined valid time is supplied.