You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function of resize() and reserve() is a little similar, but reserve() only gives to enough room so that future call that leads to increase of the size (e.g. calling push_back()) will be more efficient. So maybe line57 as follows is better: for (j = 0; j < N; ++j) array.push_back(j);
The text was updated successfully, but these errors were encountered:
This issue lies in the
test/kvec_test.cc
line 57The function of resize() and reserve() is a little similar, but reserve() only gives to enough room so that future call that leads to increase of the size (e.g. calling push_back()) will be more efficient. So maybe line57 as follows is better:
for (j = 0; j < N; ++j) array.push_back(j);
The text was updated successfully, but these errors were encountered: