最終更新日時(UTC):
が更新

履歴 編集

function
<memory>

std::enable_shared_from_this::コンストラクタ(C++11)

constexpr enable_shared_from_this() noexcept;                     // (1)
enable_shared_from_this(const enable_shared_from_this&) noexcept; // (2)

enable_shared_from_thisオブジェクトの構築

  • (1) デフォルトコンストラクタ
  • (2) コピーコンストラクタ

効果

  • (1), (2) :
    • C++11 : enable_shared_from_this<T>オブジェクトを構築する
    • C++17 : 保持するthisを指すポインタ(weak_ptr<T>)を値初期化デフォルト構築)する

バージョン

言語

  • C++11

処理系

参照