Lines Matching refs:T
24 template <typename T>
26 enum { type_must_be_complete = sizeof(T) };
28 void operator()(T* p) const { in operator()
34 template <typename T>
35 struct DefaultDelete<T[]> {
36 enum { type_must_be_complete = sizeof(T) };
37 void operator()(T* p) const {
50 template <typename T, typename D = DefaultDelete<T> >
54 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
62 T& operator*() const { return *mPtr; }
63 T* operator->() const { return mPtr; }
64 T* get() const { return mPtr; }
68 T* release() __attribute__((warn_unused_result)) {
69 T* result = mPtr;
77 void reset(T* ptr = NULL) {
86 T* mPtr;
97 template <typename T, typename D>
98 class UniquePtr<T[], D> {
100 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) {
107 T& operator[](size_t i) const {
110 T* get() const { return mPtr; }
112 T* release() __attribute__((warn_unused_result)) {
113 T* result = mPtr;
118 void reset(T* ptr = NULL) {
126 T* mPtr;