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

Matt Calabrese rivorus at gmail.com
Tue Feb 17 23:45:27 PST 2015


On Tue, Feb 17, 2015 at 11:35 PM, François Fayard <
fayard.francois at icloud.com> wrote:

> Hi Matt,
>
> You seem to favour the usage of std::size_t because it does not "limit the
> range of values". My original post shows that the usage of std::size_t does
> not even allow std::vector to have a size() >= PTRDIFF_MAX in all the 3
> major standard library implementation.
>

Right, I already addressed that in a previous reply.

-- 
-Matt Calabrese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150217/097d16ae/attachment.html>


More information about the cfe-dev mailing list