Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.18 KB

File metadata and controls

45 lines (33 loc) · 1.18 KB

コンストラクタ

  • memory[meta header]
  • std[meta namespace]
  • out_ptr_t[meta class]
  • function[meta id-type]
  • cpp23[meta cpp]
explicit out_ptr_t(Smart& smart, Args... args);  // (1)
out_ptr_t(const out_ptr_t&) = delete;  // (2)

概要

  • (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

処理系

関連項目

参照