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

履歴 編集

function
<shared_mutex>

std::shared_timed_mutex::コンストラクタ(C++14)

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

処理系