i came across some code, that uses allocate
extensively. For example,
char* recordDate = allocate<char>(20)
I have never used allocate before and hence the question, what is the difference between malloc and allocate?
One difference that i can tell, although i am unclear about its advantage, is that, malloc gives raw memory, where as it seems like allocate will give raw memory, but i dont have to cast the pointer to a specific type.