Operators and void pointers
Hi! I've a question.
Is new() an operator or a function or both?
I was reading and I came across this line
|
void * operator new(std::size_t);
|
And what is a void pointer? I don't get how a void pointer can exist because it points to...what?
new is an operator and a void pointer can point to any data type.
http://www.cplusplus.com/reference/new/operator%20new/
But "new()" has the '()' postfix? Isn't it a function?
Or is it operator overloading (haven't reached that chapter yet though).
Topic archived. No new replies allowed.