質問編集履歴

3

訂正

2022/06/24 06:06

投稿

insecticide
insecticide

スコア315

test CHANGED
File without changes
test CHANGED
@@ -6,10 +6,11 @@
6
6
  けれども、この場合、emplace_back()を利用するについてメリットがあると良く紹介されています。
7
7
  それでは 
8
8
  ```C++
9
- thread_list.emplace_back(hoge, i*10, i);
9
+ thread_list.emplace_back(std::thread(hoge, i*10, i));
10
10
  を用いて
11
11
  thread_list.push_back(std::make_unique<std::thread>(hoge, i*10, i));
12
12
  ```
13
+
13
14
  を置き換える事ができるのでしょうか=要は効果的に、パファオーパンス的に同じでしょうか。
14
15
 
15
16
  よろしくお願い致します。

2

訂正

2022/06/24 04:50

投稿

insecticide
insecticide

スコア315

test CHANGED
File without changes
test CHANGED
@@ -4,10 +4,10 @@
4
4
  ```
5
5
  上記文の中の「make_unique」メソッドはobjectの生成に優れる特徴があると評判されています。
6
6
  けれども、この場合、emplace_back()を利用するについてメリットがあると良く紹介されています。
7
+ それでは 
7
8
  ```C++
8
- // それでは 
9
9
  thread_list.emplace_back(hoge, i*10, i);
10
- // を用いて
10
+ を用いて
11
11
  thread_list.push_back(std::make_unique<std::thread>(hoge, i*10, i));
12
12
  ```
13
13
  を置き換える事ができるのでしょうか=要は効果的に、パファオーパンス的に同じでしょうか。

1

変更

2022/06/24 04:49

投稿

insecticide
insecticide

スコア315

test CHANGED
File without changes
test CHANGED
@@ -9,7 +9,9 @@
9
9
  thread_list.emplace_back(hoge, i*10, i);
10
10
  // を用いて
11
11
  thread_list.push_back(std::make_unique<std::thread>(hoge, i*10, i));
12
+ ```
12
- // を置き換える事ができるのでしょうか=要は効果的に、パファオーパンス的に同じでしょうか。
13
+ を置き換える事ができるのでしょうか=要は効果的に、パファオーパンス的に同じでしょうか。
13
14
 
14
- ```
15
+ よろしくお願い致します。
15
16
 
17
+