類模板
<memory>

std::auto_ptr_ref

template <class Y> struct auto_ptr_ref;
auto_ptr 引用
這是一個輔助類,用於允許某些轉換,以便 auto_ptr 物件可以傳遞給函式以及從函式返回。

該類除了儲存對 auto_ptr 物件的引用外,沒有其他成員。

C++11 棄用了 auto_ptr 的使用,同時也引入了靈活性,允許庫根據需要實現此類或以其他方式提供相同的功能。