18 #ifndef __UT_UNIQUEPTR_H_INCLUDED__
19 #define __UT_UNIQUEPTR_H_INCLUDED__
23 #include <type_traits>
37 class Deleter = std::default_delete<T>
48 inline typename std::enable_if<
60 inline typename std::enable_if<
82 struct DefaultClearer;
93 static const bool clearNeedsDestruction =
false;
97 #endif // __UT_UNIQUEPTR_H_INCLUDED__
GLsizei const GLfloat * value
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
static void clear(UT_UniquePtr< T > &v)
static void clearConstruct(UT_UniquePtr< T > *p)
std::enable_if< !std::is_array< T >::value, UT_UniquePtr< T >>::type UTmakeUnique(REST &&...args)
**If you just want to fire and args
static bool isClear(const UT_UniquePtr< T > &v)