I read the code of memory management, and I can't understand the meaning of the following function, could you please tell how does the function work?
// Get the reference of next block's address in current block.
static void*& GetNextBlock(void* p_block)
{
return *(reinterpret_cast<void**>(p_block));
}
According to the comment upon the code, the function returns the address of p_block's next block, but I think the function returns the address of p_block.