Yes, yes, and no. Prefer C++11: - used to deallocate an object allocated using operator new: delete obj; delete [] array_obj; C++11 - till date: - Also used to mark a function (both class method and non-class) unusable, e.g: void fn()= delete; void fn(int) { } class cl { cl() = delete; void get() = delete; void get(std::string) { } };
yes and in c++
Обсуждают сегодня