C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Why is size_type in std::array an alias for size_t?
From: Lyberta (lyberta_at_[hidden])
Date: 2019-11-08 21:45:00


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.




STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups