![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
      
  | 
  inlinestatic | 
Recover only the memory used for the top nested call.
If there is nothing on the nested stack, then a std::logic_error exception is thrown.
It is preferred to use the nested_rev_autodiff class for nested autodiff as it handles recovery of memory automatically.
| std::logic_error | if empty_nested() returns true  | 
Definition at line 23 of file recover_memory_nested.hpp.