deallocate
常见例句
- Allocate and deallocate memory space as needed.
需要时分配和收回存储空间。 - Deallocate - Static member to release an IRP allocated with Allocate.
静态释放一个IRP。 - To deallocate an extent, the Database Engine makes sure that the GAM bit is set to 1 and the SGAM bit is set to 0.
若要释放区,数据库引擎确保将GAM位设置为1,将SGAM位设置为0。 - You can use this opportunity to do some cleanup such as deallocate memory and so on.
你能利用这个机会做一些清理工作。例如:释放内存等等。 - Using singletons makes the design more efficient because they remove the need to allocate and deallocate memory every time a state change is made.
使用单件使得这一设计更加高效,因为避免了在每一次状态转换的时候申请和释放内存。 - First this is OK.But it has potential possibility to cause memory leak because you should remeber deallocate the memory through the pointer returned.
我想也是,不过我觉得这种方式不好吧,内存在函数内部分配,然后要求调用者释放,这不好吧,有好的解决方法吗? 返回 deallocate