You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StoredRange can store an optionally-deleted unique_ptr
* Also add some libmesh_asserts in StoredRange::reset() to catch the case
where a range is reset() but the _objs pointer was not initialized.
* Use lambdas to define the custom deleter. The decision to delete/not
is made at construction time, and does not change during the object's
lifetime.
* One thing I am not 100% happy with is that we still need to call 'new'
when allocating the class unique_ptr, since one cannot really use
std::make_unique when a custom deleter is employed.
https://stackoverflow.com/questions/21788066/using-stdmake-unique-with-a-custom-deleter
* Use ptr_type typedef for improved readability
* Add required C++ includes.
0 commit comments