We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967d060 commit 7df12cdCopy full SHA for 7df12cd
reference/string/basic_string/reserve.md
@@ -30,7 +30,7 @@ constexpr void reserve(size_type res_arg); // (2) C++20
30
`allocator_traits<Allocator>::allocate()` が、よりふさわしい例外を投げるかもしれない。
31
32
33
-## 備考
+## 非推奨・削除の詳細
34
C++03で`reserve`操作でのメモリの縮小ができたことは、以下の問題があった:
35
36
- パフォーマンスの罠となっていた。この関数に指定する引数の値を慎重に選ばなければ、予想外の動的な再確保によってパフォーマンスを低下させる原因となっていた
0 commit comments