Skip to content

Commit 7df12cd

Browse files
committed
basic_string::reserve : 非推奨・削除の詳細用の見出しを設定
1 parent 967d060 commit 7df12cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/string/basic_string/reserve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constexpr void reserve(size_type res_arg); // (2) C++20
3030
`allocator_traits<Allocator>::allocate()` が、よりふさわしい例外を投げるかもしれない。
3131
3232
33-
## 備考
33+
## 非推奨・削除の詳細
3434
C++03で`reserve`操作でのメモリの縮小ができたことは、以下の問題があった:
3535
3636
- パフォーマンスの罠となっていた。この関数に指定する引数の値を慎重に選ばなければ、予想外の動的な再確保によってパフォーマンスを低下させる原因となっていた

0 commit comments

Comments
 (0)