C++ Logo


Advanced search

Re: Why is size_type in std::array an alias for size_t?

From: Lyberta <lyberta_at_[hidden]>
Date: Sat, 09 Nov 2019 03:45:00 +0000
Thiago Macieira via Std-Discussion:
> No, this is intentional. The std::array::size_type should be the type that
> sizeof(actual_array) returns. That's size_t.

And yet std::vector::size_type is just "implementation defined", not
even std::allocator_traits<Allocator>::size_type.

Received on 2019-11-08 21:48:20