[cfe-dev] libc++: max_size() of a std::vector

Kilian, Jens jens.kilian at Advantest.com
Wed Feb 18 01:22:07 PST 2015


> 1) Indices are nonnegative, therefore they should be unsigned.

This is technically not true in C++, because the built-in versions of operator[] use ptrdiff_t as the type of the subscript (13.6.13).

Best regards,

	Jens.






More information about the cfe-dev mailing list