• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libstdc++/include/std/

Lines Matching defs:auto_ptr

126    *  A wrapper class to provide auto_ptr with reference semantics.
127 * For example, an auto_ptr can be assigned (or constructed from)
128 * the result of a function which returns an auto_ptr by value.
147 * An @c auto_ptr owns the object it holds a pointer to. Copying
148 * an @c auto_ptr copies the pointer and transfers ownership to the
149 * destination. If more than one @c auto_ptr owns the same object
152 * The uses of @c auto_ptr include providing temporary
156 * auto_ptr does not meet the CopyConstructible and Assignable
159 * instantiating a Standard Library container with an @c auto_ptr
164 * Good examples of what can and cannot be done with auto_ptr can
169 * 127. auto_ptr<> conversion issues
174 class auto_ptr
184 * @brief An %auto_ptr is usually constructed from a raw pointer.
190 auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
193 * @brief An %auto_ptr can be constructed from another %auto_ptr.
194 * @param a Another %auto_ptr of the same type.
199 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
202 * @brief An %auto_ptr can be constructed from another %auto_ptr.
203 * @param a Another %auto_ptr of a different but related type.
212 auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { }
215 * @brief %auto_ptr assignment operator.
216 * @param a Another %auto_ptr of the same type.
222 auto_ptr&
223 operator=(auto_ptr& __a) throw()
230 * @brief %auto_ptr assignment operator.
231 * @param a Another %auto_ptr of a different but related type.
240 auto_ptr&
241 operator=(auto_ptr<_Tp1>& __a) throw()
248 * When the %auto_ptr goes out of scope, the object it owns is
259 ~auto_ptr() { delete _M_ptr; }
264 * If this %auto_ptr no longer owns anything, then this
297 * @note This %auto_ptr still owns the memory.
310 * @note This %auto_ptr no longer owns the memory. When this object
341 * These operations convert an %auto_ptr into and from an auto_ptr_ref
344 * auto_ptr<Derived> func_returning_auto_ptr(.....);
346 * auto_ptr<Base> ptr = func_returning_auto_ptr(.....);
349 auto_ptr(auto_ptr_ref<element_type> __ref) throw()
352 auto_ptr&
368 operator auto_ptr<_Tp1>() throw()
369 { return auto_ptr<_Tp1>(this->release()); }