21#ifndef LIBMV_BASE_SCOPED_PTR_H
22#define LIBMV_BASE_SCOPED_PTR_H
39 T*
get()
const {
return resource_; }
47 resource_ = new_resource;
51 T* released_resource = resource_;
53 return released_resource;
70 T*
get()
const {
return array_; }
86 T* released_array = array_;
88 return released_array;
95 template <
typename T2>
97 template <
typename T2>
BLI_INLINE bool operator!=(const ListBase &a, const ListBase &b)
bool operator==(const AssetWeakReference &a, const AssetWeakReference &b)
btGeneric6DofConstraint & operator=(btGeneric6DofConstraint &other)
void reset()
clear internal cached data and reset random seed
T & operator[](std::ptrdiff_t i) const
void reset(T *new_resource)
#define assert(assertion)