Lines Matching refs:T
35 template< typename T, typename SMART >
44 SMART::free(const_cast<Smart_cap<T,SMART>&>(*this));
47 Cap<T> release() const noexcept
50 SMART::invalidate(const_cast<Smart_cap<T,SMART>&>(*this));
52 return Cap<T>(r);
74 { T* __t = ((O*)100); (void)__t; }
79 { T* __t = ((O*)100); (void)__t; }
84 { T* __t = ((O*)100); (void)__t; }
92 { T* __t = ((O*)100); (void)__t; }
94 void operator = (typename Cap<T>::Cap_type cap) noexcept
124 { T* __t = ((O*)100); (void)__t; }
152 * Member access of a `T`.
154 Cap<T> operator -> () const noexcept { return Cap<T>(_c); }
156 Cap<T> get() const noexcept { return Cap<T>(_c); }
161 template< typename T >
169 { T* __t = ((O*)100); (void)__t; }
173 { T* __t = ((O*)100); (void)__t; }
179 { T* __t = ((O*)100); (void)__t; }
194 * \tparam T Type to cast the capability to.
199 * \return A smart capability with new type `T`.
201 template< typename T, typename F, typename SMART >
203 Smart_cap<T, SMART> cap_cast(Smart_cap<F, SMART> const &c) noexcept
205 (void)static_cast<T const *>(reinterpret_cast<F const *>(100));
206 return Smart_cap<T, SMART>(Cap<T>(SMART::copy(c).cap()));
213 * \tparam T Type to cast the capability to.
218 * \return A smart capability with new type `T`.
220 template< typename T, typename F, typename SMART >
222 Smart_cap<T, SMART> cap_reinterpret_cast(Smart_cap<F, SMART> const &c) noexcept
224 return Smart_cap<T, SMART>(Cap<T>(SMART::copy(c).cap()));