Skip to content

Commit 56437ce

Browse files
committed
update
1 parent 50d4d18 commit 56437ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/cstdlib/realloc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace std {
1414
1515
`ptr`は、`calloc`、`malloc`、`realloc`で事前に確保され、なおかつ`free`で解放されていないメモリである必要がある。
1616
17-
それ以外のメモリの場合、動作は未定義である
17+
それ以外のメモリの場合、動作は未定義
1818
1919
`ptr`に`nullptr`を渡した場合、`malloc(new_size)`として動作する。
2020
@@ -25,7 +25,7 @@ namespace std {
2525
2626
縮小した場合、再確保されたメモリのサイズまでの領域の内容が保持される。
2727
28-
拡張した場合、新しい領域の内容は未定義である
28+
拡張した場合、新しい領域の内容は未定義
2929
3030
- 新しいサイズの領域を確保、割り当てする。その後、新しいサイズと古いサイズのいずれか小さい方のサイズに等しいメモリ領域をコピーし、古いブロックを解放する。
3131

0 commit comments

Comments
 (0)