Home | History | Annotate | Download | only in mac

Lines Matching refs:Traits

17 // The Traits structure must provide the Retain and Release methods for type T.
51 template<typename T, typename Traits = ScopedTypeRefTraits<T>>
57 T object = Traits::InvalidValue(),
61 object_ = Traits::Retain(object_);
64 ScopedTypeRef(const ScopedTypeRef<T, Traits>& that)
67 object_ = Traits::Retain(object_);
72 Traits::Release(object_);
75 ScopedTypeRef& operator=(const ScopedTypeRef<T, Traits>& that) {
88 void reset(T object = Traits::InvalidValue(),
92 object = Traits::Retain(object);
94 Traits::Release(object_);
125 object_ = Traits::InvalidValue();