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

履歴 編集

function
<memory>

std::out_ptr_t::コンストラクタ(C++23)

explicit
out_ptr_t(Smart& smart, Args... args);  // (1) C++23
constexpr explicit
out_ptr_t(Smart& smart, Args... args);  // (1) C++26

out_ptr_t(const out_ptr_t&) = delete;   // (2) C++23

概要

  • (1) : out_ptr_tオブジェクトの構築。
  • (2) : コピーコンストラクタ。コピー不可。

効果

(1) : out_ptr_tクラスの説明用メンバ変数s, a, pを下記の通り初期化する。

  • Smart&型メンバ変数s : smart
  • tuple<Args...>型メンバ変数a : std::forward<Args>(args)...
  • Pointer型メンバp : {}(値初期化)

バージョン

言語

  • C++23

処理系

関連項目

参照