Skip to content

Commit 88ba553

Browse files
committed
improve std::vector::shrink_to_fit()
1 parent 0328c11 commit 88ba553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/vector/vector/shrink_to_fit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ int main()
5353
// 領域を切り詰める
5454
v.shrink_to_fit();
5555
std::cout << v.capacity() << std::endl;
56-
assert(v.capacity() == v.size());
5756
}
5857
```
5958
* shrink_to_fit()[color ff0000]
6059
* v.capacity()[link capacity.md]
60+
* v.erase[link erase.md]
6161

62-
### 出力
62+
### 出力例
6363
```
6464
3
6565
3

0 commit comments

Comments
 (0)