Struct faiss::ScopeDeleter

template<class T>
struct ScopeDeleter

bare-bones unique_ptr this one deletes with delete []

Public Functions

inline explicit ScopeDeleter(const T *ptr = nullptr)
inline void release()
inline void set(const T *ptr_in)
inline void swap(ScopeDeleter<T> &other)
inline ~ScopeDeleter()

Public Members

const T *ptr