次の方法で共有


unique_ptr::get

stored_ptr を返します。

pointer get() const;

解説

このメンバー関数は、stored_ptr を返します。

必要条件

ヘッダー: <memory>

名前空間: std

参照

関連項目

unique_ptr クラス

<memory>

その他の技術情報

unique_ptr のメンバー

<memory> メンバー