Template talk:cpp/container/reserve

Different meanings of "size"
There seems to be confusion about the meaning of "size". As it is used by the standard, size refers to the size of the sequence, i.e. vector.size. This matters eg. in the description of the complexity of vector.reserve which is (at most) linear in the vector's size (not it's capacity). Thus, I consider it misleading to use "size" as parameter name and I'm going to change it to "n" to be consistent with the standard. Extensive 04:10, 17 July 2013 (PDT)


 * Thanks for bringing forward this issue. Don't you think an explicit parameter name, such as e.g., would be even better? P12 12:12, 17 July 2013 (PDT)


 * Agreed and done. Extensive 06:09, 18 July 2013 (PDT)