• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

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

    履歴 編集

    function
    <memory>

    std::enable_shared_from_this::コンストラクタ

    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

    処理系

    参照