Allocator-aware deleter for use with std::unique_ptr.
More...
#include <memory.h>
template<typename Alloc>
struct neuron::alloc_deleter< Alloc >
Allocator-aware deleter for use with std::unique_ptr.
This is copied from https://stackoverflow.com/a/23132307. See also http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0316r0.html, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0211r3.html, and boost::allocate_unique<...>. Hopefully std::allocate_unique will be included in C++23.
Definition at line 89 of file memory.h.
◆ pointer
template<typename Alloc >
◆ alloc_deleter() [1/2]
template<typename Alloc >
◆ alloc_deleter() [2/2]
template<typename Alloc >
◆ operator()()
template<typename Alloc >
template<typename Alloc >
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/nrn/checkouts/3466/src/coreneuron/utils/memory.h