Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.37 KB

File metadata and controls

50 lines (37 loc) · 1.37 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) 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

処理系

関連項目

参照