Loading...
Searching...
No Matches
array_deleter< T > Class Template Reference

Used as a std::shared_ptr deleter (second argument) to overload delete ptr with delete[] ptr. More...

#include <util.h>

Public Member Functions

void operator() (T const *ptr)
 Called by std::shared_ptr when its reference count reaches zero.
 

Detailed Description

template<typename T>
class awkward::util::array_deleter< T >

Used as a std::shared_ptr deleter (second argument) to overload delete ptr with delete[] ptr.

This is necessary for std::shared_ptr to contain array buffers.

See also

  • pyobject_deleter, which reduces the reference count of a Python object when there are no more C++ shared pointers referencing it.

Member Function Documentation

◆ operator()()

template<typename T >
void operator() ( T const * ptr)
inline

Called by std::shared_ptr when its reference count reaches zero.


The documentation for this class was generated from the following file: