两者free(NULL)
都::operator delete(NULL)
允许。分配器概念(例如 std::allocator 是否也允许deallocate(NULL,1)
,或者是否需要自己保护它?
问问题
426 次
两者free(NULL)
都::operator delete(NULL)
允许。分配器概念(例如 std::allocator 是否也允许deallocate(NULL,1)
,或者是否需要自己保护它?