Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.59 KB

File metadata and controls

50 lines (39 loc) · 1.59 KB

コンストラクタ

  • shared_mutex[meta header]
  • std[meta namespace]
  • shared_timed_mutex[meta class]
  • function[meta id-type]
  • cpp14[meta cpp]
shared_timed_mutex();                                   // (1)
shared_timed_mutex(const shared_timed_mutex&) = delete; // (2)

timed_mutexオブジェクトの構築

  • (1) : デフォルトコンストラクタ。shared_timed_mutexオブジェクトの初期化を行う。
  • (2) : コピーコンストラクタ。コピー不可。

例外

この関数は、以下のerror conditionを持つsystem_error例外オブジェクトを送出する可能性がある:

#include <shared_mutex>

int main()
{
  // デフォルト構築 : ミューテックスの初期化
  std::shared_timed_mutex mtx;
}

出力

バージョン

言語

  • C++14

処理系