24 #ifndef PXR_BASE_TF_ANY_UNIQUE_PTR_H
25 #define PXR_BASE_TF_ANY_UNIQUE_PTR_H
30 #include <type_traits>
60 , _delete(other._delete)
72 _delete = other._delete;
86 void const *
Get()
const {
94 , _delete(&_Delete<
T>)
98 static void _Delete(
void const *
ptr) {
99 delete static_cast<T const *
>(
ptr);
104 void (*_delete)(
void const *);
GLsizei const GLfloat * value
TfAnyUniquePtr & operator=(TfAnyUniquePtr &&other)
TfAnyUniquePtr(TfAnyUniquePtr &&other)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static TfAnyUniquePtr New(T const &v)
#define PXR_NAMESPACE_CLOSE_SCOPE
static TfAnyUniquePtr New()
void const * Get() const
Return a pointer to the owned object.