G
George
Hi,
There are second form of allocation/deallocation functions
" void * operator new(std::size_t size, const std::nothrow_t&) throw(); "
" void operator delete(void* ptr, const std::nothrow_t&) throw(); "
in the C++ standard.
Operator "new" in second form can be used as:
" T * p = new(nothrow) T; "
But how to invoke operator "delete" in second form ?
Thanks in advance
George
There are second form of allocation/deallocation functions
" void * operator new(std::size_t size, const std::nothrow_t&) throw(); "
" void operator delete(void* ptr, const std::nothrow_t&) throw(); "
in the C++ standard.
Operator "new" in second form can be used as:
" T * p = new(nothrow) T; "
But how to invoke operator "delete" in second form ?
Thanks in advance
George