unique_ptr operator=
現在のスケジューラで指定された unique_ptr のアドレスを割り当てます。
unique_ptr& operator=(
unique_ptr&& _Right
);
template<class Type2, Class Del2>
unique_ptr& operator=(
unique_ptr<Type, Del>&& _Right
);
unique_ptr& operator=(
pointer-type
);
パラメーター
- 現在の unique_ptrに値を割り当てるときに使用します unique_ptr の参照。
解説
このメンバー関数は reset(_Right.release()) を呼び出し、stored_deleterに _Right.stored_deleter を移動し、*thisを返します。
必要条件
ヘッダー: <memory>
名前空間: std