ryo-manba / ft_containers

Reimplementation of STL containers.
MIT License
0 stars 0 forks source link

[2pt]第2引数ありのvector.resizeを呼ぶと要素数が1つ多くなる #34

Closed ryo-manba closed 2 years ago

ryo-manba commented 2 years ago

概要

vector.resize(10);
vector.resize(15, 42);

vector.size(); // 16になる

対応

ryo-manba commented 2 years ago

引数1つと引数2つでメソッドを分けていたがついでに共通化した。