Stan Math Library  2.6.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
chainable_alloc.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
2 #define STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
3 
5 #include <stdexcept>
6 
7 namespace stan {
8  namespace math {
9 
10 
18  public:
20  ChainableStack::var_alloc_stack_.push_back(this);
21  }
22  virtual ~chainable_alloc() { }
23  };
24 
25  }
26 }
27 #endif
static std::vector< ChainableAllocT * > var_alloc_stack_
A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan i...

     [ Stan Home Page ] © 2011–2015, Stan Development Team.