Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ operator delete()

static void stan::math::vari_base::operator delete ( void *  )
inlinestaticnoexceptinherited

Delete a pointer from the underlying memory pool.

This no-op implementation enables a subclass to throw exceptions in its constructor. An exception thrown in the constructor of a subclass will result in an error being raised, which is in turn caught and calls delete().

See the discussion of "plugging the memory leak" in: http://www.parashift.com/c++-faq/memory-pools.html

Definition at line 62 of file vari.hpp.