名前空間
変種
操作

「cpp/thread/unique lock/swap2」の版間の差分

提供: cppreference.com
< cpp‎ | thread‎ | unique lock
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
(Use {{lc}}. Update links. Various fixes.)
2行: 2行:
 
{{cpp/title | swap<small>(std::unique_lock)</small>}}
 
{{cpp/title | swap<small>(std::unique_lock)</small>}}
 
{{cpp/thread/unique_lock/navbar}}
 
{{cpp/thread/unique_lock/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item |
+
{{|
 
template< class Mutex >
 
template< class Mutex >
 
void swap( unique_lock<Mutex> &lhs,  
 
void swap( unique_lock<Mutex> &lhs,  
 
           unique_lock<Mutex> &rhs );
 
           unique_lock<Mutex> &rhs );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
{{tr|{{c|std::swap}}用{{c|std::unique_lock}}アルゴリズムを専門としています。 {{tt|lhs}}のそれとの交流{{tt|rhs}}の状態を。効果的に{{c|lhs.swap(rhs)}}呼び出し.|Specializes the {{c|std::swap}} algorithm for {{c|std::unique_lock}}. Exchanges the state of {{tt|lhs}} with that of {{tt|rhs}}. Effectively calls {{c|lhs.swap(rhs)}}.}}
+
{{tr|{{|std::swap}}用{{|std::unique_lock}}アルゴリズムを専門としています。 {{tt|lhs}}のそれとの交流{{tt|rhs}}の状態を。効果的に{{c|lhs.swap(rhs)}}呼び出し.|Specializes the {{|std::swap}} algorithm for {{|std::unique_lock}}. Exchanges the state of {{tt|lhs}} with that of {{tt|rhs}}. Effectively calls {{c|lhs.swap(rhs)}}.}}
  
 
===パラメータ===
 
===パラメータ===
{{param list begin}}
+
{{begin}}
{{param list item | lhs, rhs |{{tr| その状態をスワップするためのラッパーをロックします| lock wrappers whose states to swap}}}}
+
{{| lhs, rhs |{{tr| その状態をスワップするためのラッパーをロックします| lock wrappers whose states to swap}}}}
{{param list end}}
+
{{end}}
  
 
===値を返します===
 
===値を返します===
30行: 30行:
  
 
===も参照してください===
 
===も参照してください===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/thread/unique_lock/dcl list swap}}
+
{{| cpp/thread/unique_lock/swap}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/thread/unique lock/swap2]]
 
[[de:cpp/thread/unique lock/swap2]]

2013年7月2日 (火) 16:10時点における版

 
 
スレッドサポートライブラリ
スレッド
(C++11)
(C++20)
(C++20)
this_thread 名前空間
(C++11)
(C++11)
(C++11)
相互排他
(C++11)
汎用ロック管理
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
条件変数
(C++11)
セマフォ
ラッチとバリア
(C++20)
(C++20)
フューチャー
(C++11)
(C++11)
(C++11)
(C++11)
 
 
template< class Mutex >

void swap( unique_lock<Mutex> &lhs,

           unique_lock<Mutex> &rhs );
std::swapstd::unique_lockアルゴリズムを専門としています。 lhsのそれとの交流rhsの状態を。効果的にlhs.swap(rhs)呼び出し.
Original:
Specializes the std::swap algorithm for std::unique_lock. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

パラメータ

lhs, rhs -
その状態をスワップするためのラッパーをロックします
Original:
lock wrappers whose states to swap
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

値を返します

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

例外

noexcept 指定:  
noexcept
  

も参照してください

別の std::unique_lock と状態を入れ替えます
(パブリックメンバ関数) [edit]